mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
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:
parent
dc453b7ffc
commit
0f2b468f46
2 changed files with 8 additions and 2 deletions
|
|
@ -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']);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue