From e61e581a2b66b0444db01d884465ea913929e343 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Tue, 31 Oct 2023 17:04:34 +0100 Subject: Updated 27 files, added 12 files and deleted 3 files (automated) --- oauth/callback-native/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'oauth/callback-native') 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"); -- cgit