In your login function, you check whether the normal authentication is successful and redirects as normal. Should it not be successful, then you try yourself to authorize the user using all possible valid combinations as you specified. Enjoy, John
On May 22, 1:46 pm, Jörg <[email protected]> wrote: > Hello, i'am working at a relaunch of a website where the user has the > possibility to logged in with a Nickname or Email Adress. > I think that the Auth Component is the right was for authentification > but i had the problem that i can only map username to email or > nickname. > The other point is that old stored passwords are md5 hashed and new > registrations gets the CAKE hashing. > > so i need somthing like this.) > 1.) Check that the auth username can find in Users.nick or Users.email > 2.) If the find is ok than check the password with Cake hashing and if > Users.password is empty tray to validate > Users.password with entered password hashed with md5 hash. > > I hope that i explain my problem and somebody can help me. > > THANKS ! > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
