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

public class UpdatePasswordForm extends BaseForm
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 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
    • currentPassword

      private String currentPassword
    • decryptedPassword

      private String decryptedPassword
    • confirmPassword

      private String confirmPassword
    • csrfToken

      private String csrfToken
    • rememberMe

      private String rememberMe
  • Constructor Details

    • UpdatePasswordForm

      public UpdatePasswordForm()
  • Method Details

    • getUserName

      public String getUserName()
    • setUserName

      public void setUserName(String userName)
    • getEmail1

      public String getEmail1()
    • setEmail1

      public void setEmail1(String email1)
    • getCurrentPassword

      public String getCurrentPassword()
    • setCurrentPassword

      public void setCurrentPassword(String currentPassword)
    • getDecryptedPassword

      public String getDecryptedPassword()
    • setDecryptedPassword

      public void setDecryptedPassword(String decryptedPassword)
    • getConfirmPassword

      public String getConfirmPassword()
    • setConfirmPassword

      public void setConfirmPassword(String confirmPassword)
    • getCsrfToken

      public String getCsrfToken()
    • setCsrfToken

      public void setCsrfToken(String csrfToken)
    • getRememberMe

      public String getRememberMe()
    • setRememberMe

      public void setRememberMe(String rememberMe)
    • 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