lol... yeah ok, i'll copy and paste the code from the book for you... class UsersController extends AppController { var $components = array('Auth');
function beforeFilter() { $this->Auth->fields = array( 'username' => 'username', 'password' => 'secretword' ); } } change "username" to "email" or what ever you want. if you'd followed my link, you'd see the same code... greets Andreas cakephp_rocks schrieb: > i couldnt find anything in book thats why i come here for help lol > > On Jul 22, 2:07 pm, Andreas <andreasderk...@arcor.de> wrote: > >> http://book.cakephp.org/complete/172/Authentication#Setting-Auth-Comp... >> >> greets >> Andreas >> >> cakephp_rocks schrieb: >> >> >> >> >>> is this possible loging in with email field instead for username >>> field >>> if its how ??- Hide quoted text - >>> >> - Show quoted text - >> > > > --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---