I am setting field name EMAIL instead of username for authentication via auth component. It is not working and not showing any errors.

I am setting field name as EMAIL instead of username for authentication via auth component. It is not working and not showing any errors.

$this->Auth->fields = array('username'=>'email', 'password'=>'password');

Please guide me so i can move ahead.

Thanks

M.B.

Asked by mannii, on 15/2/12

1 Answer

you should read the documenation more carefully

since its now


$this->Auth->authenticate = array('Form'=>array('fields'=>array('username'=>'email', 'password'=>'password')));

Answered by euromarkon 15/2/12

<< previous next >>

Rating

0

Viewed

411 times

Last Activity

on 15/2/12