Skip to content

Commit

Permalink
Update src/main/java/mate/academy/service/AuthenticationService.java
Browse files Browse the repository at this point in the history
Co-authored-by: Safarov Renat <[email protected]>
  • Loading branch information
MykolaTurak and JJJazl authored Dec 25, 2024
1 parent 0af75b2 commit 5a20476
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ public boolean login(String email, String password) {
if (user == null) {
return false;
}
if (user.getPassword().equals(password)) {
return true;
}
return false;
return user != null && user.getPassword().equals(password);
}
}

0 comments on commit 5a20476

Please sign in to comment.