Fix: allow korean maestro id

This commit is contained in:
2018-09-03 09:36:06 +09:00
parent 8cf7f67ac6
commit e9da9b9bba
4 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ $password = $_POST["password"];
$maestroID = get_maestro_id($maestroName);
if($maestroID === null) {
set_error_code("not_registered_id");
set_error_message("등록되지 않은 마에스트로 아이디입니다.");
set_error_message("등록되지 않았거나 아직 승인되지 않은 마에스트로 아이디입니다.");
send_result_fail();
exit;
}
@@ -58,7 +58,7 @@ function get_maestro_id($maestroName) {
$query = "
SELECT MaestroID
FROM maestro
WHERE Name = ?
WHERE Name = ? AND ActivateStatus = 1
";
$stmt = $db_conn->prepare($query);
$stmt->bind_param("s", $maestroName);