|
@@ 1599-1603 (lines=5) @@
|
| 1596 |
|
// Get information of the key |
| 1597 |
|
$output = executeQuery('member.getAutologin', $args); |
| 1598 |
|
// If no information exists, delete a cookie |
| 1599 |
|
if(!$output->toBool() || !$output->data) |
| 1600 |
|
{ |
| 1601 |
|
setCookie('xeak',null,$_SERVER['REQUEST_TIME']+60*60*24*365); |
| 1602 |
|
return; |
| 1603 |
|
} |
| 1604 |
|
|
| 1605 |
|
$oMemberModel = getModel('member'); |
| 1606 |
|
$config = $oMemberModel->getMemberConfig(); |
|
@@ 1611-1615 (lines=5) @@
|
| 1608 |
|
$user_id = ($config->identifier == 'user_id') ? $output->data->user_id : $output->data->email_address; |
| 1609 |
|
$password = $output->data->password; |
| 1610 |
|
|
| 1611 |
|
if(!$user_id || !$password) |
| 1612 |
|
{ |
| 1613 |
|
setCookie('xeak',null,$_SERVER['REQUEST_TIME']+60*60*24*365); |
| 1614 |
|
return; |
| 1615 |
|
} |
| 1616 |
|
|
| 1617 |
|
$do_auto_login = false; |
| 1618 |
|
|