Browse Source
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
pull/5175/head
Igor Kulikov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
dao/src/main/java/org/thingsboard/server/dao/user/UserServiceImpl.java
|
|
|
@ -192,9 +192,8 @@ public class UserServiceImpl extends AbstractEntityService implements UserServic |
|
|
|
@Override |
|
|
|
public UserCredentials requestPasswordReset(TenantId tenantId, String email) { |
|
|
|
log.trace("Executing requestPasswordReset email [{}]", email); |
|
|
|
validateString(email, "Incorrect email " + email); |
|
|
|
DataValidator.validateEmail(email); |
|
|
|
User user = userDao.findByEmail(tenantId, email); |
|
|
|
User user = findUserByEmail(tenantId, email); |
|
|
|
if (user == null) { |
|
|
|
throw new UsernameNotFoundException(String.format("Unable to find user by email [%s]", email)); |
|
|
|
} |
|
|
|
|