Add: get player enter_code from server
This commit is contained in:
@@ -61,7 +61,9 @@ AccountValidator.prototype.isValidPlayerID = function(textID) {
|
||||
}
|
||||
|
||||
AccountValidator.prototype.messageForInvalidPlayerID = function(textID) {
|
||||
if(textID.length < Number(AccountValidator.Player_ID_LENGTH_MINIMUM))
|
||||
if(typeof textID == "undefined" || textID == null || textID == "")
|
||||
return "학생 이름을 입력해 주세요.";
|
||||
else if(textID.length < Number(AccountValidator.Player_ID_LENGTH_MINIMUM))
|
||||
return "학생 이름은 " + AccountValidator.Player_ID_LENGTH_MINIMUM + "글자 이상이어야 합니다.";
|
||||
else if(textID.length > Number(AccountValidator.PLAYER_ID_LENGTH_MAXIMUM))
|
||||
return "학생 이름은 " + AccountValidator.PLAYER_ID_LENGTH_MAXIMUM + "글자 이하이어야 합니다.";
|
||||
@@ -79,7 +81,10 @@ AccountValidator.prototype.isValidPlayerPW = function(textPW) {
|
||||
}
|
||||
|
||||
AccountValidator.prototype.messageForInvalidPlayerPW = function(textPW) {
|
||||
if(textPW.length < Number(AccountValidator.PLAYER_PW_LENGTH_MINIMUM))
|
||||
console.log(textPW);
|
||||
if(typeof textPW == "undefined" || textPW == null || textPW == "")
|
||||
return "학생 입장 번호를 입력해 주세요.";
|
||||
else if(textPW.length < Number(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 + "자리 이하의 숫자로 입력해 주세요.";
|
||||
|
||||
Reference in New Issue
Block a user