Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[G5-80] 본인인증 비밀번호 찾기 후 비밀번호 변경 관련 수정
- Loading branch information
1 parent
de72f42
commit 11718eb
Showing
10 changed files
with
115 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,31 @@ | ||
| <?php | ||
| include_once('./_common.php'); | ||
|
|
||
| if($w == '') | ||
| $mb_id = isset($_POST['mb_id']) ? trim($_POST['mb_id']) : ''; | ||
| else | ||
| alert('잘못된 접근입니다', G5_URL); | ||
| $mb_id = isset($_SESSION['ss_cert_mb_id']) ? trim(get_session('ss_cert_mb_id')) : ''; | ||
| $mb_dupinfo = isset($_SESSION['ss_cert_dupinfo']) ? trim(get_session('ss_cert_dupinfo')) : ''; | ||
|
|
||
| if(!$mb_id) | ||
| alert('회원아이디 값이 없습니다. 올바른 방법으로 이용해 주십시오.'); | ||
| if(!$mb_id) alert('회원아이디 값이 없습니다. 올바른 방법으로 이용해 주십시오.', G5_URL); | ||
|
|
||
| if(!$mb_dupinfo) alert('잘못된 접근입니다.', G5_URL); | ||
|
|
||
| $mb_check = sql_fetch("select * from {$g5['member_table']} where mb_id = '{$mb_id}' AND mb_dupinfo = '{$mb_dupinfo}'"); | ||
|
|
||
| if(!$mb_check) alert('잘못된 접근입니다.', G5_URL); | ||
|
|
||
| $mb_password = isset($_POST['mb_password']) ? trim($_POST['mb_password_re']) : ''; | ||
| $mb_password_re = isset($_POST['mb_password_re']) ? trim($_POST['mb_password_re']) : ''; | ||
|
|
||
|
|
||
| if ($w == '' && !$mb_password) | ||
| alert('비밀번호가 넘어오지 않았습니다.'); | ||
| if($w == '' && $mb_password != $mb_password_re) | ||
| alert('비밀번호가 일치하지 않습니다.'); | ||
| if (!$mb_password) | ||
| alert('비밀번호가 넘어오지 않았습니다.'); | ||
| if ($mb_password != $mb_password_re) | ||
| alert('비밀번호가 일치하지 않습니다.'); | ||
|
|
||
| $sql_password = "mb_password = '".get_encrypt_string($mb_password)."' "; | ||
|
|
||
| $sql_password = ""; | ||
| if ($mb_password) | ||
| $sql_password = "mb_password = '".get_encrypt_string($mb_password)."' "; | ||
| sql_query("update {$g5['member_table']} set {$sql_password} where mb_id = '{$mb_id}' AND mb_dupinfo = '{$mb_dupinfo}'"); | ||
|
|
||
| sql_query("update {$g5['member_table']} set {$sql_password} where mb_id = '{$mb_id}'"); | ||
| set_session('ss_cert_mb_id', ''); | ||
| set_session('ss_cert_dupinfo', ''); | ||
|
|
||
| goto_url(G5_BBS_URL.'/login.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters