|
Predictions 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object ActionImpl ActionTemplateShowAndApply hirondelle.predict.pub.lostpassword.LostPasswordAction
public final class LostPasswordAction
First step in recovering a lost password.
The second step is implemented by
ResetPasswordAction
.
The user inputs their email address into a form. Then, this action will send an email to the given email address. The owner of that email address will receive an email containing a special link, which will take them to a second form.
The special link will contain a one-off "nonce" value, whose value will populate a hidden variable in the second form. This nonce value amounts to a handshake between the server and the owner of the given email address. The nonce value is attached to the user account having the given email address, and is valid only for a limited time.
Field Summary | |
---|---|
static RequestParameter |
CAPTCHA_CHALLENGE
|
static RequestParameter |
CAPTCHA_RESPONSE
|
static RequestParameter |
EMAIL
|
static SqlId |
FETCH_PARTIAL_USER
|
static SqlId |
SET_TEMP_PASSWORD_NONCE
|
Fields inherited from class ActionTemplateShowAndApply |
---|
SUPPORTED_OPERATION |
Fields inherited from class ActionImpl |
---|
DATA, ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID |
Constructor Summary | |
---|---|
LostPasswordAction(RequestParser aRequestParser)
Constructor. |
Method Summary | |
---|---|
protected void |
apply()
Send an email to the given email address, containing a link allowing the user to reset their password. |
protected void |
show()
Show an empty form, with no prepopulation. |
protected void |
validateUserInput()
Check that user input can build a LostPassword object. |
Methods inherited from class ActionTemplateShowAndApply |
---|
execute |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SqlId SET_TEMP_PASSWORD_NONCE
public static final SqlId FETCH_PARTIAL_USER
public static final RequestParameter EMAIL
public static final RequestParameter CAPTCHA_CHALLENGE
public static final RequestParameter CAPTCHA_RESPONSE
Constructor Detail |
---|
public LostPasswordAction(RequestParser aRequestParser)
Method Detail |
---|
protected void show() throws DAOException
show
in class ActionTemplateShowAndApply
DAOException
protected void validateUserInput()
LostPassword
object.
validateUserInput
in class ActionTemplateShowAndApply
protected void apply() throws AppException
If the given email address is not in the database, then show an error message.
apply
in class ActionTemplateShowAndApply
AppException
|
Predictions 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |