issue 1495 fixed keep login error with email_address identifier type

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10250 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-02-28 09:30:16 +00:00
parent dc453b7ffc
commit 0f2b468f46
2 changed files with 8 additions and 2 deletions

View file

@ -1446,15 +1446,20 @@
return;
}
$user_id = $output->data->user_id;
$oMemberModel = &getModel('member');
$config = $oMemberModel->getMemberConfig();
$user_id = ($config->identifier == 'user_id') ? $output->data->user_id : $output->data->email_address;
$password = $output->data->password;
if(!$user_id || !$password) {
if(!$user_id || !$password) {
setCookie('xeak',null,time()+60*60*24*365, '/');
return;
}
$do_auto_login = false;
// Compare key values based on the information
$key = md5($user_id . $password . $_SERVER['HTTP_USER_AGENT']);