Saturday, May 22, 2010

User Login with Auth but check of two possible "Usernames"

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 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate