Add it to UserController.
But first get the flow right:
(any one has better idea's?)
- In the login page, have a "tab" with "forget password"
- accept email address,
- look it up in the userlist,
- generate (and save in user table) a url with a long random string + timestamp,
- send it by email,
- have a form to enter the new password,
- check the random string against the user record + check if timestamp is not older than 1 day
- change the password
- log in
Add it to UserController.
But first get the flow right:
(any one has better idea's?)