Skip to content

Commit

Permalink
fixed variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
VolodymyrNyshta committed Aug 17, 2024
1 parent b8df5ef commit 0920435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/mate/academy/service/AuthenticationService.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class AuthenticationService {
* Return false in any other cases.
*/
public boolean login(String email, String password) {
UserService userServ = new UserService();
User user = userServ.findByEmail(email);
UserService userService = new UserService();
User user = userService.findByEmail(email);
if (user != null && user.getPassword() == password) {
return true;
}
Expand Down

0 comments on commit 0920435

Please sign in to comment.