Add: login error message

This commit is contained in:
2018-05-29 15:54:19 +09:00
parent a68d18df2d
commit dbc19572a7
2 changed files with 28 additions and 20 deletions
+2 -2
View File
@@ -20,13 +20,13 @@ include "./../setup/connect_db.php";
$maestro_id = get_maestro_id($maestro_name);
if($maestro_id == null) {
send_error_message($replyJSON, "no maestro id");
send_error_message($replyJSON, "입력한 마에스트로 계정이 없습니다");
exit;
}
$replyJSON = get_login_data($maestro_id, $name, $enterCode);
if($replyJSON["UserID"] == null) {
send_error_message($replyJSON, "invalid username and entercode");
send_error_message($replyJSON, "입력한 이름/입장번호와 일치하는 계정이 없습니다");
exit;
}