Skip to content

Commit

Permalink
implemented methods dedicated to user logging in
Browse files Browse the repository at this point in the history
  • Loading branch information
gekatonheyr committed Dec 7, 2024
1 parent 89231d6 commit ffc6cba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class AuthenticationService {
public boolean login(String email, String password) {
UserService userService = new UserService();
User user = userService.findByEmail(email);
if ( user != null) {
if (user != null) {
return (user.getPassword().equals(password)) ? true : false;
}
return false;
Expand Down

0 comments on commit ffc6cba

Please sign in to comment.