issue 641 retouch

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.1@10973 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-08-03 09:22:34 +00:00
parent a6f9cc5401
commit 71a4b27c52
3 changed files with 10 additions and 9 deletions

View file

@ -1059,10 +1059,17 @@
function procMemberResetAuthMail()
{
$existingEmail = Context::get('existingEmail');
$memberInfo = $_SESSION['auth_member_info'];
unset($_SESSION['auth_member_info']);
if(!$memberInfo)
{
return $this->stop('msg_invalid_request');
}
$newEmail = Context::get('email_address');
if(!$newEmail || !$existingEmail)
if(!$newEmail)
{
return $this->stop('msg_invalid_request');
}
@ -1074,12 +1081,6 @@
return new Object(-1,'msg_exists_email_address');
}
$memberInfo = $oMemberModel->getMemberInfoByEmailAddress($existingEmail);
if(!$memberInfo)
{
return $this->stop('msg_invalid_request');
}
// remove all key by member_srl
$args->member_srl = $memberInfo->member_srl;
$output = executeQuery('member.deleteAuthMail', $args);