|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An implementation of the PasswordHelperController interface
must be able to tell if the user provided exists, if an answer to the
password helper question was provided, if that answer is correct and it must
also be able to reset the user's password.
| Method Summary | |
User |
getValidUser()
Checks if the username in the form provided is a valid username. |
boolean |
isAnswerCorrect(User user)
Checks the user's answer against the answer in the form. |
boolean |
isAnswerSupplied()
Checks the form to see if an answer was supplied. |
void |
resetPassword(User user)
Resets the user's password and does whatever else you need it to do. |
| Methods inherited from interface org.davesag.generica.controller.ActionController |
setAction |
| Methods inherited from interface org.davesag.generica.controller.Controller |
setForm, setRequest, setResponse |
| Method Detail |
public boolean isAnswerSupplied()
throws Exception
Exception - if anything went wrong.
public User getValidUser()
throws Exception
Exception - if anything went wrong.
public boolean isAnswerCorrect(User user)
throws Exception
user - The user to check against.
Exception - if anything went wrong.
public void resetPassword(User user)
throws Exception
user - The user whose password must be reset.
Exception - if anything went wrong.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||