Interface ChangePasswordFormValidator
-
- All Known Implementing Classes:
DefaultChangePasswordFormValidator
public interface ChangePasswordFormValidatorValidator that runs through the fields in theChangePasswordFormand ensures correctness.- Author:
- Samarth Dhruva (samarthd)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidate(User currentUser, ChangePasswordForm changePasswordForm, org.springframework.validation.Errors errors)Verifies that all of the supplied fields in the givenChangePasswordFormare correct, placing any errors into the givenErrors.
-
-
-
Method Detail
-
validate
void validate(@NonNull User currentUser, @NonNull ChangePasswordForm changePasswordForm, @NonNull org.springframework.validation.Errors errors)Verifies that all of the supplied fields in the givenChangePasswordFormare correct, placing any errors into the givenErrors.- 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
-
-