suche
This commit is contained in:
parent
6f9c37ab3a
commit
2cad9784a8
|
@ -80,6 +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()){
|
||||||
|
$this->User->id = $users['User']['id'];
|
||||||
$result = $this->User->saveField('last_login', date("Y-m-d H:i:s"));
|
$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']);
|
||||||
|
|
Loading…
Reference in New Issue