Skip to content

Commit

Permalink
added fixed after review all
Browse files Browse the repository at this point in the history
  • Loading branch information
Povch Anastasia committed Dec 4, 2024
1 parent 548bdfa commit 8daa423
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>1.0-SNAPSHOT</version>

<properties>
<jdk.version>11</jdk.version>
<jdk.version>17</jdk.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.checkstyle.plugin.version>3.1.1</maven.checkstyle.plugin.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public AuthenticationService(UserService userService) {
this.userService = userService;
}

public boolean login(String email, String password) {
public boolean login (String email, String password) {
User user = userService.findByEmail(email);
return user != null && user.getPassword().equals(password);

Expand Down
1 change: 1 addition & 0 deletions src/main/java/mate/academy/service/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public User findByEmail(String email) {
return user;
}
}

return null;
}
}

0 comments on commit 8daa423

Please sign in to comment.