Class RegisterForm
java.lang.Object
org.apache.struts.action.ActionForm
com.softslate.commerce.customer.core.BaseForm
com.softslate.commerce.customer.customer.RegisterForm
- All Implemented Interfaces:
Serializable
Struts form class for submissions to register a new customer account. Used for requests to "/Register.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.
If the "useImageVerificationWithRegistrations" setting is set, it also checked the entered text against the Jcaptcha image that was presented.
- 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
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
setDecryptedPassword
(String decryptedPassword) void
void
setEmailerOptInApproval
(String emailerOptInApproval) void
setOriginalRequest
(String originalRequest) void
setTextFromImage
(String textFromImage) 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
-
decryptedPassword
-
confirmPassword
-
emailerOptInApproval
-
textFromImage
-
originalRequest
-
csrfToken
-
-
Constructor Details
-
RegisterForm
public RegisterForm()
-
-
Method Details
-
getUserName
-
setUserName
-
getEmail1
-
setEmail1
-
getDecryptedPassword
-
setDecryptedPassword
-
getConfirmPassword
-
setConfirmPassword
-
getEmailerOptInApproval
-
setEmailerOptInApproval
-
getTextFromImage
-
setTextFromImage
-
getOriginalRequest
-
setOriginalRequest
-
getCsrfToken
-
setCsrfToken
-
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
-