mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
allow users without email to change their profile (#1184)
This commit is contained in:
@@ -207,7 +207,7 @@ public class UserREST {
|
||||
return Response.status(Status.FORBIDDEN).build();
|
||||
}
|
||||
|
||||
Optional<User> login = userService.login(user.getEmail(), request.getCurrentPassword());
|
||||
Optional<User> login = userService.login(user.getName(), request.getCurrentPassword());
|
||||
if (login.isEmpty()) {
|
||||
throw new BadRequestException("invalid password");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user