use of org.summerb.approaches.springmvc.security.ve.PasswordsDontMatchValidationError in project summerb by skarpushin.
the class UsersServiceFacadeImpl method validatePasswordReset.
protected void validatePasswordReset(PasswordReset resetPasswordRequest) throws FieldValidationException {
ValidationContext ctx = new ValidationContext();
validatePassword(resetPasswordRequest.getPassword(), ctx);
if (!resetPasswordRequest.getPassword().equals(resetPasswordRequest.getNewPasswordAgain())) {
ctx.add(new PasswordsDontMatchValidationError());
}
ctx.throwIfHasErrors();
}
Aggregations