Commit 76da0a0de53eaa69c1e753ad95e8d9d6c52bbb96

Authored by Igor Kulikov
Committed by GitHub
2 parents de64bdca f5056715

Merge pull request #5164 from vvlladd28/bug/reset-password/case-sensitive

[3.3.1]Fixed has not been used property SECURITY_USER_LOGIN_CASE_SENSITIVE on password recover
... ... @@ -192,9 +192,8 @@ public class UserServiceImpl extends AbstractEntityService implements UserServic
192 192 @Override
193 193 public UserCredentials requestPasswordReset(TenantId tenantId, String email) {
194 194 log.trace("Executing requestPasswordReset email [{}]", email);
195   - validateString(email, "Incorrect email " + email);
196 195 DataValidator.validateEmail(email);
197   - User user = userDao.findByEmail(tenantId, email);
  196 + User user = findUserByEmail(tenantId, email);
198 197 if (user == null) {
199 198 throw new UsernameNotFoundException(String.format("Unable to find user by email [%s]", email));
200 199 }
... ...