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