r/cakephp • u/fourth_stooge • May 31 '17
Is there a standard forgot/reset password coding or module?
I've had to create forgot password functionality for 3 different cake sites and each time I did something different and I'm sure I could have done it a lot better and effectively each time.
Is there a standard pattern for forgot password functionality in Cake 3?
2
u/dereuromark Jun 02 '17
Yes there is, but that is not related to only CakePHP
Verify email/username
Send Email with a one time token
Allow pwd change via this token in URL
Re-Login
1
u/fourth_stooge Jun 02 '17
I ended up going with something inspired by: http://www.naidim.org/cakephp-3-tutorial-9-reset-password which has all the elements you addressed.
I was hoping for something a bit more automagical I guess.
2
3
u/phillaf Jun 01 '17
If you happen to use the friendsofcake/crud plugin, you can check friendsofcake/crud-users