suche
This commit is contained in:
parent
c4b03bba1e
commit
27969b0d8e
|
@ -80,7 +80,7 @@ class MiconwareSessionComponent extends Component {
|
||||||
'conditions' => array('User.mail' => $mail,'User.is_active'=>true)
|
'conditions' => array('User.mail' => $mail,'User.is_active'=>true)
|
||||||
));
|
));
|
||||||
if($this->validate_password($password,$users['User']['password']) and !$this->isLoggedin()){
|
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)
|
if($result)
|
||||||
$result = $this->Session->write('user',$users['User']['id']);
|
$result = $this->Session->write('user',$users['User']['id']);
|
||||||
return $result;
|
return $result;
|
||||||
|
|
Loading…
Reference in New Issue