+
신청 내용이 모두 맞는지 확인해주세요.
아래의 등록 신청 버튼을 누르면, 입력하신 이메일 주소로도 입금 내용을 보내드립니다.
신청후에
원을 송금해주세요.
@@ -82,16 +183,17 @@
+
-
+
신청 정보 확인
마에스트로 아이디
-
+
가 신청되었습니다.
입금 계좌
@@ -99,7 +201,7 @@
카카오뱅크 : 9999-999999
계좌 이름 : 박지상
금액 :
원
-
보내는 사람 이름 : 요청하신 마에스트로 아이디 로 입력해주세요.
+
보내는 사람 이름 : 요청하신 마에스트로 아이디 로 입력해주세요.
보내는 사람 이름을 마에스트로 아이디로 해주실 경우, 가장 빠르게 계정을 활성화 해드릴 수 있습니다.
diff --git a/src/web/server/maestro/check_id.php b/src/web/server/maestro/check_id.php
new file mode 100644
index 0000000..a3bb472
--- /dev/null
+++ b/src/web/server/maestro/check_id.php
@@ -0,0 +1,48 @@
+close();
+ exit;
+}
+
+$replyJSON["Result"] = "ok";
+echo json_encode($replyJSON, JSON_UNESCAPED_UNICODE);
+$db_conn->close();
+exit;
+
+
+function get_maestro_id($maestro_name) {
+ global $db_conn;
+
+ $query = "SELECT MaestroID FROM moty_maestro WHERE Name=?";
+ $stmt = $db_conn->prepare($query);
+ $stmt->bind_param('s', $maestro_name);
+ $stmt->execute();
+ $stmt->bind_result($maestro_id);
+ // while($stmt->fetch()) {
+ // ;
+ // }
+ $stmt->fetch();
+ $stmt->close();
+
+ return $maestro_id;
+}
+
+?>
\ No newline at end of file
diff --git a/src/web/server/maestro/login.php b/src/web/server/maestro/login.php
index e2ae411..e3a4995 100644
--- a/src/web/server/maestro/login.php
+++ b/src/web/server/maestro/login.php
@@ -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();
diff --git a/src/web/sql/make_db.sql b/src/web/sql/make_db.sql
index a8c63cf..f4781d5 100644
--- a/src/web/sql/make_db.sql
+++ b/src/web/sql/make_db.sql
@@ -1,7 +1,7 @@
CREATE TABLE moty_maestro (
MaestroID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
Name CHAR(50) NOT NULL,
- Password CHAR(10) NOT NULL,
+ Password CHAR(50) NOT NULL,
Email CHAR(50) NOT NULL,
AccountType INT UNSIGNED NOT NULL,
AccountStatus INT UNSIGNED NOT NULL,