mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
가입인증메일, ID/PW찾기 메일이 24시간 동안만 유효하도록 제한
This commit is contained in:
parent
b4bbbb378f
commit
89d23f2e22
1 changed files with 11 additions and 0 deletions
|
|
@ -72,6 +72,11 @@ class memberController extends member
|
|||
}
|
||||
}
|
||||
|
||||
// Delete all previous authmail if login is successful
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $this->memberInfo->member_srl;
|
||||
executeQuery('member.deleteAuthMail', $args);
|
||||
|
||||
if(!$config->after_login_url)
|
||||
{
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', '');
|
||||
|
|
@ -1128,6 +1133,12 @@ class memberController extends member
|
|||
return $this->stop('msg_invalid_auth_key');
|
||||
}
|
||||
|
||||
if(ztime($output->data->regdate) < $_SERVER['REQUEST_TIME'] + zgap() - 86400)
|
||||
{
|
||||
executeQuery('member.deleteAuthMail', $args);
|
||||
return $this->stop('msg_invalid_auth_key');
|
||||
}
|
||||
|
||||
$args->password = $output->data->new_password;
|
||||
|
||||
// If credentials are correct, change the password to a new one
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue