Fix: input type text -> number for player enter code

This commit is contained in:
2018-10-18 18:28:40 +09:00
parent d2c8ceeb4e
commit 4590ac5a3a
4 changed files with 43 additions and 28 deletions
+3 -3
View File
@@ -73,11 +73,11 @@ AccountValidator.prototype.isValidPlayerPW = function(textPW) {
AccountValidator.prototype.messageForInvalidPlayerPW = function(textPW) {
if(textPW.length < Number(AccountValidator.PLAYER_PW_LENGTH_MINIMUM))
return "학생 입장 번호는 " + AccountValidator.PLAYER_PW_LENGTH_MINIMUM + "자 이상의 숫자로 입력해 주세요.";
return "학생 입장 번호는 " + AccountValidator.PLAYER_PW_LENGTH_MINIMUM + "자 이상의 숫자로 입력해 주세요.";
else if(textPW.length > Number(AccountValidator.PLAYER_PW_LENGTH_MAXIMUM))
return "학생 입장 번호는 " + AccountValidator.PLAYER_PW_LENGTH_MAXIMUM + "자 이하의 숫자로 입력해 주세요.";
return "학생 입장 번호는 " + AccountValidator.PLAYER_PW_LENGTH_MAXIMUM + "자 이하의 숫자로 입력해 주세요.";
else
return "학생 입장 번호는 2~6자리 숫자로 입력해 주세요.";
return "학생 입장 번호는 2~8자리 숫자로 입력해 주세요.";
}