From e9565a79eaa6b23bbf530dd8611feb1f170be781 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Tue, 3 Dec 2013 16:18:22 +0100 Subject: simplified config --- includes/sys_auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/sys_auth.php') 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); -- cgit v1.2.3-54-g00ecf