Fix wrong API error message if password incorrect
This commit is contained in:
parent
9c29a583ff
commit
3d7b2c0793
2
api.php
2
api.php
@ -57,6 +57,8 @@ switch ($VARS['action']) {
|
|||||||
exit(json_encode(["status" => "ERROR", "msg" => lang("account terminated", false)]));
|
exit(json_encode(["status" => "ERROR", "msg" => lang("account terminated", false)]));
|
||||||
case "CHANGE_PASSWORD":
|
case "CHANGE_PASSWORD":
|
||||||
exit(json_encode(["status" => "ERROR", "msg" => lang("password expired", false)]));
|
exit(json_encode(["status" => "ERROR", "msg" => lang("password expired", false)]));
|
||||||
|
case "NORMAL":
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
exit(json_encode(["status" => "ERROR", "msg" => lang("account state error", false)]));
|
exit(json_encode(["status" => "ERROR", "msg" => lang("account state error", false)]));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user