Add: maestro register
This commit is contained in:
1 parent
77afebbb3a
commit
6f4be3e81b
5 files changed
+186
-37
No files matched your search
@@ -3,6 +3,7 @@ header('Content-Type: application/json');
|
||||
|
||||
$maestro_name = $_POST["maestro_name"];
|
||||
$password = $_POST["password"];
|
||||
|
||||
/*
|
||||
if(!is_numeric($enterCode)) {
|
||||
send_error_code('생년월일이 숫자가 아닙니다. : '.$enterCode);
|
||||
@@ -55,7 +56,7 @@ function get_maestro_id($maestro_name) {
|
||||
function login($maestro_name, $password) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "SELECT MaestroID FROM moty_maestro WHERE Name=? AND Password=?";
|
||||
$query = "SELECT MaestroID FROM moty_maestro WHERE Name=? AND Password=PASSWORD(?)";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param('ss', $maestro_name, $password);
|
||||
$stmt->execute();
|
||||
|
||||
Reference in new issue
Block a user