From 8daa4233905565d863f4bc36a57aa4f5a563ab3b Mon Sep 17 00:00:00 2001 From: Povch Anastasia Date: Wed, 4 Dec 2024 22:34:14 +0200 Subject: [PATCH] added fixed after review all --- pom.xml | 2 +- src/main/java/mate/academy/service/AuthenticationService.java | 2 +- src/main/java/mate/academy/service/UserService.java | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 75c9a1d15..c1bd277e0 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ 1.0-SNAPSHOT - 11 + 17 UTF-8 UTF-8 3.1.1 diff --git a/src/main/java/mate/academy/service/AuthenticationService.java b/src/main/java/mate/academy/service/AuthenticationService.java index c24ab1082..73790242e 100644 --- a/src/main/java/mate/academy/service/AuthenticationService.java +++ b/src/main/java/mate/academy/service/AuthenticationService.java @@ -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); diff --git a/src/main/java/mate/academy/service/UserService.java b/src/main/java/mate/academy/service/UserService.java index df2cfdbb6..f4497b367 100644 --- a/src/main/java/mate/academy/service/UserService.java +++ b/src/main/java/mate/academy/service/UserService.java @@ -22,6 +22,7 @@ public User findByEmail(String email) { return user; } } + return null; } }