I haven't achieved yet, I've tried with your suggestions. Now I am trying with
elseif(AuthComponent::password($password)==$this->user['User']['tmp_password'])
{
$this->Controller->Auth->authenticate=array('Form' => array('fields' => array('username'=>'username' ,'password'=>'tmp_password')));
$this->Controller->Auth->login();
}
{
$this->Controller->Auth->authenticate=array('Form' => array('fields' => array('username'=>'username' ,'password'=>'tmp_password')));
$this->Controller->Auth->login();
}
But I don't have good results.
El jueves, 29 de noviembre de 2012 10:43:21 UTC-3, Jorge Guerra escribió:
Hi, I am a new member in this group and now I am developing a website and I've got a trouble and I reckon I need a little of help for one task.--I've got problems for creating a custom login with a temporal password, I need to create a new password which it is temporal for accesing once and after that this password will be delete.Now I am working working at the method login for generating the session. The original method it is http://book.cakephp.org/2.0/en/core-libraries/ components/authentication. html#identifying-users-and- logging-them-in I added a elseif comparing the data with the temporal password but I do not know how I can generating this session when the username and the password it's the same according the database.That's the problem how could I generating the session of a user manually
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment