diff --git a/src/game/login/login.js b/src/game/login/login.js index 0225cff..4bacc74 100644 --- a/src/game/login/login.js +++ b/src/game/login/login.js @@ -30,7 +30,11 @@ class Login { this.makeMaestroNameText(textX, 200); this.makeNameText(textX, 300); this.makeEnterCodeText(textX, 360); - this.inputTextName.canvasInput.focus(); + + if(sessionStorageManager.maestroID === null) + this.inputTextMaestroName.canvasInput.focus(); + else + this.inputTextName.canvasInput.focus(); this.makeStartButton(game.world.centerX, game.world.centerY + 100); diff --git a/src/web/js/lib/account_validator.js b/src/web/js/lib/account_validator.js index dc276d9..fba09a0 100644 --- a/src/web/js/lib/account_validator.js +++ b/src/web/js/lib/account_validator.js @@ -1,7 +1,7 @@ class AccountValidator { constructor() { - this.patternMaestroID = /^[A-Za-z]{1}[A-Za-z0-9]{3,19}$/; + this.patternMaestroID = /^[A-Za-z가-힣]{1}[A-Za-z0-9가-힣]{2,19}$/; this.patternMaestroPW = /^[A-Za-z0-9]{4,16}$/; this.patternPlayerID = /^[A-Za-z0-9가-힣-_]{1,8}$/; diff --git a/src/web/module/maestro_section_register.html b/src/web/module/maestro_section_register.html index 2973d22..2416651 100644 --- a/src/web/module/maestro_section_register.html +++ b/src/web/module/maestro_section_register.html @@ -89,6 +89,7 @@ function checkData() { } password = $("#password").val(); + console.log("password : " + password); if(password.length === 0) { showErrorMessage("암호를 입력해 주세요.", "error"); $("#password").focus(); @@ -239,7 +240,7 @@ $('#myTab a').on('click', function (e) {