summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/sys_auth.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/sys_auth.php b/includes/sys_auth.php
index 9718f0c0..3902aea2 100644
--- a/includes/sys_auth.php
+++ b/includes/sys_auth.php
@@ -55,7 +55,7 @@ function verify_password($password, $salt, $uid = false) {
// JSON Authorisierungs-Schnittstelle
function json_auth_service() {
- global $CurrentExternAuthPass;
+ global $api_key;
header("Content-Type: application/json");
@@ -63,7 +63,7 @@ function json_auth_service() {
$Pass = $_REQUEST['pw'];
$SourceOuth = $_REQUEST['so'];
- if (isset($CurrentExternAuthPass) && $SourceOuth == $CurrentExternAuthPass) {
+ if (isset($api_key) && $SourceOuth == $api_key) {
$sql = "SELECT `UID`, `Passwort` FROM `User` WHERE `Nick`='" . sql_escape($User) . "'";
$Erg = sql_select($sql);