Fixed has not been used property SECURITY_USER_LOGIN_CASE_SENSITIVE on password recover
This commit is contained in:
parent
0ee4907567
commit
b8daa49736
@ -192,9 +192,7 @@ public class UserServiceImpl extends AbstractEntityService implements UserServic
|
|||||||
@Override
|
@Override
|
||||||
public UserCredentials requestPasswordReset(TenantId tenantId, String email) {
|
public UserCredentials requestPasswordReset(TenantId tenantId, String email) {
|
||||||
log.trace("Executing requestPasswordReset email [{}]", email);
|
log.trace("Executing requestPasswordReset email [{}]", email);
|
||||||
validateString(email, "Incorrect email " + email);
|
User user = findUserByEmail(tenantId, email);
|
||||||
DataValidator.validateEmail(email);
|
|
||||||
User user = userDao.findByEmail(tenantId, email);
|
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
throw new UsernameNotFoundException(String.format("Unable to find user by email [%s]", email));
|
throw new UsernameNotFoundException(String.format("Unable to find user by email [%s]", email));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user