Fix wrong API error message if password incorrect

This commit is contained in:
Skylar Ittner 2017-05-14 12:42:02 -06:00
parent 9c29a583ff
commit 3d7b2c0793

View File

@ -57,6 +57,8 @@ switch ($VARS['action']) {
exit(json_encode(["status" => "ERROR", "msg" => lang("account terminated", false)]));
case "CHANGE_PASSWORD":
exit(json_encode(["status" => "ERROR", "msg" => lang("password expired", false)]));
case "NORMAL":
break;
default:
exit(json_encode(["status" => "ERROR", "msg" => lang("account state error", false)]));
}