Class UpdatePasswordForm
java.lang.Object
org.apache.struts.action.ActionForm
com.softslate.commerce.customer.core.BaseForm
com.softslate.commerce.customer.customer.UpdatePasswordForm
- All Implemented Interfaces:
Serializable
Struts form class for submissions to update a customer's password. Used
for requests to "/UpdatePassword.do".
The validate
method of this class checks for the existance of
the userName
and decryptedPassword
properties,
and checks that the decryptedPassword
property matches the
confirmPassword
property.
It also checks the length of the password against the "minimumPasswordLength"
database setting. If the "keepUserNameAndEmailInSync" setting is on, it will
verify that the user name is a valid email address and copy the user name to
the email1
property.
- Author:
- David Tobey
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private String
private String
private String
private String
(package private) static org.apache.commons.logging.Log
private String
private static final long
private String
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setConfirmPassword
(String confirmPassword) void
setCsrfToken
(String csrfToken) void
setCurrentPassword
(String currentPassword) void
setDecryptedPassword
(String decryptedPassword) void
void
setRememberMe
(String rememberMe) void
setUserName
(String userName) org.apache.struts.action.ActionErrors
validate
(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) Methods inherited from class com.softslate.commerce.customer.core.BaseForm
formUtils, getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettings, getUser, html5OrXhtml, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettings, setUser
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
log
static org.apache.commons.logging.Log log -
userName
-
email1
-
currentPassword
-
decryptedPassword
-
confirmPassword
-
csrfToken
-
rememberMe
-
-
Constructor Details
-
UpdatePasswordForm
public UpdatePasswordForm()
-
-
Method Details
-
getUserName
-
setUserName
-
getEmail1
-
setEmail1
-
getCurrentPassword
-
setCurrentPassword
-
getDecryptedPassword
-
setDecryptedPassword
-
getConfirmPassword
-
setConfirmPassword
-
getCsrfToken
-
setCsrfToken
-
getRememberMe
-
setRememberMe
-
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) - Overrides:
validate
in classorg.apache.struts.action.ActionForm
-