hirondelle.predict.pub.resetpassword
Class ResetPasswordAction
Object
ActionImpl
ActionTemplateShowAndApply
hirondelle.predict.pub.resetpassword.ResetPasswordAction
- All Implemented Interfaces:
- Action
public final class ResetPasswordAction
- extends ActionTemplateShowAndApply
Reset the user's password to a new value.
View :
SQL Statements :
Method Summary |
protected void |
apply()
Reset the user's password. |
protected void |
show()
Show the empty form, with no prepopulation. |
protected void |
validateUserInput()
Check user input can build a ResetPassword object. |
Methods inherited from class ActionImpl |
addError, addError, addError, addMessage, addMessage, addToRequest, addToSession, copyFromSessionToRequest, createSessionAndCsrfToken, endSession, getErrors, getExistingSession, getFromSession, getIdParam, getIdParams, getLocale, getLoggedInUserName, getMessages, getOperation, getOrderBy, getParam, getParamUnsafe, getRequestParser, getResponsePage, getTimeZone, getUserId, hasErrors, removeFromSession, setResponsePage |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESET_LOST_PASSWORD
public static final SqlId RESET_LOST_PASSWORD
EMAIL
public static final RequestParameter EMAIL
NONCE
public static final RequestParameter NONCE
PASSWORD
public static final RequestParameter PASSWORD
PASSWORD_CONFIRM
public static final RequestParameter PASSWORD_CONFIRM
CAPTCHA_CHALLENGE
public static final RequestParameter CAPTCHA_CHALLENGE
CAPTCHA_RESPONSE
public static final RequestParameter CAPTCHA_RESPONSE
ResetPasswordAction
public ResetPasswordAction(RequestParser aRequestParser)
- Constructor.
show
protected void show()
throws DAOException
- Show the empty form, with no prepopulation.
- Specified by:
show
in class ActionTemplateShowAndApply
- Throws:
DAOException
validateUserInput
protected void validateUserInput()
- Check user input can build a
ResetPassword
object.
- Specified by:
validateUserInput
in class ActionTemplateShowAndApply
apply
protected void apply()
throws AppException
- Reset the user's password.
This operation succeeds only if the nonce is present, it matches the nonce
value attached to the user account, and is
no more than 15 minutes old.
- Specified by:
apply
in class ActionTemplateShowAndApply
- Throws:
AppException
Copyright Hirondelle Systems - Generated 2013Oct19.12.27