summaryrefslogtreecommitdiff
path: root/oauth
diff options
context:
space:
mode:
Diffstat (limited to 'oauth')
-rw-r--r--oauth/.DS_Storebin6148 -> 6148 bytes
-rw-r--r--oauth/callback-native/index.php3
-rw-r--r--oauth/callback/index.php3
3 files changed, 4 insertions, 2 deletions
diff --git a/oauth/.DS_Store b/oauth/.DS_Store
index b1ba7bb..1333ff9 100644
--- a/oauth/.DS_Store
+++ b/oauth/.DS_Store
Binary files differ
diff --git a/oauth/callback-native/index.php b/oauth/callback-native/index.php
index c5d0b44..c289957 100644
--- a/oauth/callback-native/index.php
+++ b/oauth/callback-native/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");
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");