Skip to content

Commit

Permalink
Fix after mentors help
Browse files Browse the repository at this point in the history
  • Loading branch information
LiudmylaKuzmenko committed Nov 26, 2024
1 parent 9de6a91 commit 7a40c5a
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ public class AuthenticationService {
public boolean login(String email, String password) {
User user = userService.findByEmail(email);

boolean canLogin = false;

if (user != null) {
canLogin = password.equals(user.getPassword());
}

return canLogin;
return user != null && user.getPassword().equals(password);

}
}

0 comments on commit 7a40c5a

Please sign in to comment.