Class DefaultChangePasswordFormValidator
- java.lang.Object
-
- com.broadleafcommerce.auth.user.validation.DefaultChangePasswordFormValidator
-
- All Implemented Interfaces:
ChangePasswordFormValidator
public class DefaultChangePasswordFormValidator extends Object implements ChangePasswordFormValidator
- Author:
- Samarth Dhruva (samarthd)
-
-
Constructor Summary
Constructors Constructor Description DefaultChangePasswordFormValidator(PasswordRequestValidator passwordValidator, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(User currentUser, ChangePasswordForm changePasswordForm, org.springframework.validation.Errors errors)
Verifies that all of the supplied fields in the givenChangePasswordForm
are correct, placing any errors into the givenErrors
.
-
-
-
Constructor Detail
-
DefaultChangePasswordFormValidator
public DefaultChangePasswordFormValidator(PasswordRequestValidator passwordValidator, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
-
-
Method Detail
-
validate
public void validate(@NonNull User currentUser, @NonNull ChangePasswordForm changePasswordForm, @NonNull org.springframework.validation.Errors errors)
Description copied from interface:ChangePasswordFormValidator
Verifies that all of the supplied fields in the givenChangePasswordForm
are correct, placing any errors into the givenErrors
.- Specified by:
validate
in interfaceChangePasswordFormValidator
- Parameters:
currentUser
- this should be the current (already authenticated) user who is attempting to change their passwordchangePasswordForm
- the change password form, as submitted by the usererrors
- the errors object in which any validation errors should be registered
-
-