Re: Auth fields loging in with email instead of username
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 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 -~--~~~~--~~--~--~---
Re: Auth fields loging in with email instead of username
i couldnt find anything in book thats why i come here for help lol On Jul 22, 2:07 pm, Andreas 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 -~--~~~~--~~--~--~---
Re: Auth fields loging in with email instead of username
http://book.cakephp.org/complete/172/Authentication#Setting-Auth-Component-Variables-563 greets Andreas cakephp_rocks schrieb: > is this possible loging in with email field instead for username > field > if its how ?? > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Auth fields loging in with email instead of username
is this possible loging in with email field instead for username field if its how ?? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---