diff options
Diffstat (limited to 'oauth/callback/index.php')
-rw-r--r-- | oauth/callback/index.php | 3 |
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"); |