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

public class RegisterForm extends BaseForm
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • log

      static org.apache.commons.logging.Log log
    • userName

      private String userName
    • email1

      private String email1
    • decryptedPassword

      private String decryptedPassword
    • confirmPassword

      private String confirmPassword
    • emailerOptInApproval

      private String emailerOptInApproval
    • textFromImage

      private String textFromImage
    • originalRequest

      private String originalRequest
    • csrfToken

      private String csrfToken
  • Constructor Details

    • RegisterForm

      public RegisterForm()
  • Method Details

    • getUserName

      public String getUserName()
    • setUserName

      public void setUserName(String userName)
    • getEmail1

      public String getEmail1()
    • setEmail1

      public void setEmail1(String email1)
    • getDecryptedPassword

      public String getDecryptedPassword()
    • setDecryptedPassword

      public void setDecryptedPassword(String decryptedPassword)
    • getConfirmPassword

      public String getConfirmPassword()
    • setConfirmPassword

      public void setConfirmPassword(String confirmPassword)
    • getEmailerOptInApproval

      public String getEmailerOptInApproval()
    • setEmailerOptInApproval

      public void setEmailerOptInApproval(String emailerOptInApproval)
    • getTextFromImage

      public String getTextFromImage()
    • setTextFromImage

      public void setTextFromImage(String textFromImage)
    • getOriginalRequest

      public String getOriginalRequest()
    • setOriginalRequest

      public void setOriginalRequest(String originalRequest)
    • getCsrfToken

      public String getCsrfToken()
    • setCsrfToken

      public void setCsrfToken(String csrfToken)
    • validate

      public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
      Overrides:
      validate in class org.apache.struts.action.ActionForm