mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-19 19:29:56 +09:00
fixed get temp password
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7745 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a2c9754aec
commit
1cb8ad09cd
1 changed files with 7 additions and 4 deletions
|
|
@ -1050,11 +1050,14 @@
|
|||
// 임시비밀번호로 변경 및 비밀번호 변경시간을 1로 설정
|
||||
$args->member_srl = $member_srl;
|
||||
list($usec, $sec) = explode(" ", microtime());
|
||||
$args->temp_password = substr(md5($user_id . $member_info->find_account_answer. $usec . $sec),0,20);
|
||||
$args->change_password_date = '1';
|
||||
$this->updateMemberPassword($args);
|
||||
$temp_password = substr(md5($user_id . $member_info->find_account_answer. $usec . $sec),0,15);
|
||||
|
||||
$_SESSION['xe_temp_password_'.$user_id] = $args->temp_password;
|
||||
$args->password = $temp_password;
|
||||
$args->change_password_date = '1';
|
||||
$output = $this->updateMemberPassword($args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
$_SESSION['xe_temp_password_'.$user_id] = $temp_password;
|
||||
|
||||
$this->add('user_id',$user_id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue