|
@@ 1590-1594 (lines=5) @@
|
| 1587 |
|
// Get information of the key |
| 1588 |
|
$output = executeQuery('member.getAutologin', $args); |
| 1589 |
|
// If no information exists, delete a cookie |
| 1590 |
|
if(!$output->toBool() || !$output->data) |
| 1591 |
|
{ |
| 1592 |
|
setCookie('xeak',null,$_SERVER['REQUEST_TIME']+60*60*24*365, '/'); |
| 1593 |
|
return; |
| 1594 |
|
} |
| 1595 |
|
|
| 1596 |
|
$oMemberModel = getModel('member'); |
| 1597 |
|
$config = $oMemberModel->getMemberConfig(); |
|
@@ 1602-1606 (lines=5) @@
|
| 1599 |
|
$user_id = ($config->identifier == 'user_id') ? $output->data->user_id : $output->data->email_address; |
| 1600 |
|
$password = $output->data->password; |
| 1601 |
|
|
| 1602 |
|
if(!$user_id || !$password) |
| 1603 |
|
{ |
| 1604 |
|
setCookie('xeak',null,$_SERVER['REQUEST_TIME']+60*60*24*365, '/'); |
| 1605 |
|
return; |
| 1606 |
|
} |
| 1607 |
|
|
| 1608 |
|
$do_auto_login = false; |
| 1609 |
|
|