회원 가입시 닉네임 길이를 mb_strlen으로 해야하는 점 수정
아이디를 대소문자 다 받던 것 수정(소문자로 자동 변경)
This commit is contained in:
@@ -9,7 +9,7 @@ use utilphp\util as util;
|
||||
session_start();
|
||||
session_destroy();
|
||||
|
||||
$username = util::array_get($_POST['username']);
|
||||
$username = mb_strtolower(util::array_get($_POST['username']), 'utf-8');
|
||||
$password = util::array_get($_POST['password']);
|
||||
$nickname = util::array_get($_POST['nickname']);
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ if($SESSION->isLoggedIn()){
|
||||
$SESSION->logout();
|
||||
}
|
||||
|
||||
$username = util::array_get($_POST['username']);
|
||||
$username = mb_strtolower(util::array_get($_POST['username']), 'utf-8');
|
||||
$password = util::array_get($_POST['password']);
|
||||
|
||||
if(!$username || !$password){
|
||||
|
||||
@@ -36,7 +36,7 @@ if($expires < $nowDate && (!$refresh_token || ($refresh_token_expires < $nowDate
|
||||
]);
|
||||
}
|
||||
$secret_agree =util::array_get($_POST['secret_agree']);
|
||||
$username = util::array_get($_POST['username']);
|
||||
$username = mb_strtolower(util::array_get($_POST['username']), 'utf-8');
|
||||
$password = util::array_get($_POST['password']);
|
||||
$nickname = util::array_get($_POST['nickname']);
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ function checkUsernameDup($username){
|
||||
return '계정명을 입력해주세요';
|
||||
}
|
||||
|
||||
$username = mb_strtolower($username, 'utf-8');
|
||||
$length = strlen($username);
|
||||
if($length < 4 || $length > 64){
|
||||
return '적절하지 않은 길이입니다.';
|
||||
@@ -26,7 +27,7 @@ function checkNicknameDup($nickname){
|
||||
return '닉네임을 입력해주세요';
|
||||
}
|
||||
|
||||
$length = strlen($nickname);
|
||||
$length = mb_strlen($nickname, 'utf-8');
|
||||
if($length < 1 || $length > 6){
|
||||
return '적절하지 않은 길이입니다.';
|
||||
}
|
||||
|
||||
@@ -68,4 +68,7 @@ opener.location.href="javascript:postOAuthResult('<?=$oauth_mode?>');";
|
||||
window.close();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
로그인 완료. 곧 페이지로 이동합니다.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user