diff options
author | Simon Rettberg | 2019-03-26 09:31:24 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-26 09:31:24 +0100 |
commit | 7c55bc72acbda4522767531f27fbbf51c2305bb6 (patch) | |
tree | 88cef613c38bcce0553bcc4b69ec3aa667d83734 /apis/webservice/login.php | |
parent | Delete unused and unmaintained modules (diff) | |
download | slx-admin-7c55bc72acbda4522767531f27fbbf51c2305bb6.tar.gz slx-admin-7c55bc72acbda4522767531f27fbbf51c2305bb6.tar.xz slx-admin-7c55bc72acbda4522767531f27fbbf51c2305bb6.zip |
Delete unused legacy API too
Diffstat (limited to 'apis/webservice/login.php')
-rw-r--r-- | apis/webservice/login.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/apis/webservice/login.php b/apis/webservice/login.php deleted file mode 100644 index e21975af..00000000 --- a/apis/webservice/login.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php -$login = $_POST['login']; -$sql = "select * from `user` WHERE login= :login"; -$user=Database::queryFirst($sql, array("login"=> $login)); -if($user){ - if(Crypto::verify($_POST['passwd'],$user['passwd'])){ - $_SESSION['userid']=$user['userid']; - echo json_encode(array( - "errormsg"=> "", - "status" => "ok", - "msg" => "Login successful")); - }else{ - echo json_encode(array( - "errormsg"=> "Wrong passwd", - "status" => "error", - "msg" => "")); - } -}else{ - echo json_encode(array( - "errormsg"=> "User not found", - "status" => "error", - "msg" => "")); -} |