This commit is contained in:
Martin Müller 2014-04-17 00:07:50 +02:00
parent c4b03bba1e
commit 27969b0d8e
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class MiconwareSessionComponent extends Component {
'conditions' => array('User.mail' => $mail,'User.is_active'=>true)
));
if($this->validate_password($password,$users['User']['password']) and !$this->isLoggedin()){
$result = $this->User->saveField('last_login', date(DATE_ATOM));
$result = $this->User->saveField('last_login', date("Y-m-d H:i:s"));
if($result)
$result = $this->Session->write('user',$users['User']['id']);
return $result;