Commit a67ea023d191534c2e1edaaf7c0dbabd4826a880
Committed by
GitHub
Merge pull request #3989 from YevhenBondarenko/improvements
reset password improvements
Showing
1 changed file
with
1 additions
and
0 deletions
@@ -186,6 +186,7 @@ public class UserServiceImpl extends AbstractEntityService implements UserServic | @@ -186,6 +186,7 @@ public class UserServiceImpl extends AbstractEntityService implements UserServic | ||
186 | public UserCredentials requestPasswordReset(TenantId tenantId, String email) { | 186 | public UserCredentials requestPasswordReset(TenantId tenantId, String email) { |
187 | log.trace("Executing requestPasswordReset email [{}]", email); | 187 | log.trace("Executing requestPasswordReset email [{}]", email); |
188 | validateString(email, "Incorrect email " + email); | 188 | validateString(email, "Incorrect email " + email); |
189 | + DataValidator.validateEmail(email); | ||
189 | User user = userDao.findByEmail(tenantId, email); | 190 | User user = userDao.findByEmail(tenantId, email); |
190 | if (user == null) { | 191 | if (user == null) { |
191 | throw new IncorrectParameterException(String.format("Unable to find user by email [%s]", email)); | 192 | throw new IncorrectParameterException(String.format("Unable to find user by email [%s]", email)); |