diff options
author | Philip Häusler <msquare@notrademark.de> | 2013-12-03 16:18:22 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2013-12-03 16:18:22 +0100 |
commit | e9565a79eaa6b23bbf530dd8611feb1f170be781 (patch) | |
tree | df5a5d6934107d1c175c6b4f4079cfe69a48a197 /includes/sys_auth.php | |
parent | d5b03110613df849222fa3efec348f92a84e5896 (diff) |
simplified config
Diffstat (limited to 'includes/sys_auth.php')
-rw-r--r-- | includes/sys_auth.php | 4 |
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); |