|
@@ 1577-1581 (lines=5) @@
|
| 1574 |
|
// Get information of the key |
| 1575 |
|
$output = executeQuery('member.getAutologin', $args); |
| 1576 |
|
// If no information exists, delete a cookie |
| 1577 |
|
if(!$output->toBool() || !$output->data) |
| 1578 |
|
{ |
| 1579 |
|
setCookie('xeak',null,$_SERVER['REQUEST_TIME']+60*60*24*365, '/'); |
| 1580 |
|
return; |
| 1581 |
|
} |
| 1582 |
|
|
| 1583 |
|
$oMemberModel = getModel('member'); |
| 1584 |
|
$config = $oMemberModel->getMemberConfig(); |
|
@@ 1589-1593 (lines=5) @@
|
| 1586 |
|
$user_id = ($config->identifier == 'user_id') ? $output->data->user_id : $output->data->email_address; |
| 1587 |
|
$password = $output->data->password; |
| 1588 |
|
|
| 1589 |
|
if(!$user_id || !$password) |
| 1590 |
|
{ |
| 1591 |
|
setCookie('xeak',null,$_SERVER['REQUEST_TIME']+60*60*24*365, '/'); |
| 1592 |
|
return; |
| 1593 |
|
} |
| 1594 |
|
|
| 1595 |
|
$do_auto_login = false; |
| 1596 |
|
|