remember: you should also always mentioned the cake version you are
using.
On 14 Dez., 11:40, AD7six wrote:
> On Dec 13, 12:10 pm, Miqdad Ali wrote:
>
>
>
>
>
>
>
>
>
> > Hi All,
> > I have started with Auth
>
> > class AppController extends Controller {
> > var $components = array('Auth');
On Dec 13, 12:10 pm, Miqdad Ali wrote:
> Hi All,
> I have started with Auth
>
> class AppController extends Controller {
> var $components = array('Auth');
> function beforeFilter(){
> Security::setHash('md5');
> $this->Auth->loginAction = array('controller' => 'users', '
Hi All,
I have started with Auth
class AppController extends Controller {
var $components = array('Auth');
function beforeFilter(){
Security::setHash('md5');
$this->Auth->loginAction = array('controller' => 'users', 'action'
=> 'login');
$this->Auth->loginRedirect =
$this->data['User']['password'] gets hashed automatically from Auth
component, you don't need to hash it cause it will be already hashed, if you
don't want to have such a behavior try renaming your password form field to
be something other than "password", say "passPhrase" or something else
On Sun
I am trying to get the Auth component to work. I am saving a user
password using both password() and hashPassword:
$password = $this->data['User']['password'];
$password = $this->Auth->password($password);
$this->data['User']['password'] = $this->Auth->password($password);
//$this->data = $this->A
Insert to your beforeFilter in UsersController:
public function beforeFilter() {
parent::beforeFilter();
Security::setHash('md5'); // always use md5
...
On Sep 14, 10:58 pm, benmatthew wrote:
> I'm having issues with the auth component in CakePHP 1.2. The hashes
> genera
I'm having issues with the auth component in CakePHP 1.2. The hashes
generated seem to be different from what's generated from registration
and login. This creates a mismatch with the hash password stored on
the DB.
$this->Auth->hashPasswords($this->); hashes the same as the Login
function. But t