summaryrefslogtreecommitdiff
path: root/oauth/callback
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-10-31 17:04:34 +0100
committerRaindropsSys <raindrops@equestria.dev>2023-10-31 17:04:34 +0100
commite61e581a2b66b0444db01d884465ea913929e343 (patch)
treeb49eaedb3681c4b26637acdd375cda4c3d37b07c /oauth/callback
parent41c51b8bdb9c8e9fa4a7d56f260d594739d4107e (diff)
downloadmist-e61e581a2b66b0444db01d884465ea913929e343.tar.gz
mist-e61e581a2b66b0444db01d884465ea913929e343.tar.bz2
mist-e61e581a2b66b0444db01d884465ea913929e343.zip
Updated 27 files, added 12 files and deleted 3 files (automated)
Diffstat (limited to 'oauth/callback')
-rw-r--r--oauth/callback/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/oauth/callback/index.php b/oauth/callback/index.php
index d65bced..bbb3322 100644
--- a/oauth/callback/index.php
+++ b/oauth/callback/index.php
@@ -39,7 +39,8 @@ if (isset($result["access_token"])) {
$result = json_decode($result, true);
if (!in_array($result["id"], $app["allowed"])) {
- die();
+ header("HTTP/1.1 403 Forbidden");
+ die("Not allowed to log in to this application. This will be reported.");
}
if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens")) mkdir($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens");