suche
This commit is contained in:
parent
3f4aac20da
commit
c4b03bba1e
|
@ -80,9 +80,10 @@ 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()){
|
||||||
echo $users['User']['id'];
|
$result = $this->User->saveField('last_login', date(DATE_ATOM));
|
||||||
$this->Session->write('user',$users['User']['id']);
|
if($result)
|
||||||
return true;
|
$result = $this->Session->write('user',$users['User']['id']);
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ class DreamjobCompany extends AppModel {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$data['User']['date_joined'] = date(DATE_ATOM);
|
||||||
$this->User->create(array('User'=>$data['User']));
|
$this->User->create(array('User'=>$data['User']));
|
||||||
$result=$this->User->save();
|
$result=$this->User->save();
|
||||||
if($result){
|
if($result){
|
||||||
|
|
|
@ -77,7 +77,7 @@ class DreamjobWorker extends AppModel {
|
||||||
$data['AppUser']['bday'] = $data['User']['bday'];
|
$data['AppUser']['bday'] = $data['User']['bday'];
|
||||||
|
|
||||||
|
|
||||||
|
$data['User']['date_joined'] = date(DATE_ATOM);
|
||||||
$this->User->create(array('User'=>$data['User']));
|
$this->User->create(array('User'=>$data['User']));
|
||||||
$result=$this->User->save();
|
$result=$this->User->save();
|
||||||
if($result){
|
if($result){
|
||||||
|
|
Loading…
Reference in New Issue