Commit f5056715af4cc6c1e38c7382cd4ff8831f4d2985
Committed by
GitHub
1 parent
b8daa497
Update UserServiceImpl.java
Showing
1 changed file
with
1 additions
and
0 deletions
... | ... | @@ -192,6 +192,7 @@ 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 | + DataValidator.validateEmail(email); | |
195 | 196 | User user = findUserByEmail(tenantId, email); |
196 | 197 | if (user == null) { |
197 | 198 | throw new UsernameNotFoundException(String.format("Unable to find user by email [%s]", email)); | ... | ... |