I am using the last version of CakePhp.
I developed a simple web form with email and password(i am using email instead of username).
Now i have the follow problem.
I have encrypted email field in the database, so, for this reason, i can not use auth Component as is because it will check plan email and hashed password. I need encrypted email and hashed Password.
So Now, before login() how can i change the value of the email field?
Thank you
The
AuthComponentis still suitable in your situation.If you include the component specifying that the email address is also the ‘username’
And then just encrypt the email address before you call the login method.
Hope this helps
More Info:
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#creating-custom-authentication-objects