From 19f2c9e4704e6d818b2af72b4984ae5e22049119 Mon Sep 17 00:00:00 2001 From: skrypkasv Date: Mon, 10 Jun 2024 11:18:26 +0300 Subject: [PATCH] fix login meth in AuthenticationService --- src/main/java/mate/academy/service/AuthenticationService.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/mate/academy/service/AuthenticationService.java b/src/main/java/mate/academy/service/AuthenticationService.java index d1297b0e9..374d8d9ad 100644 --- a/src/main/java/mate/academy/service/AuthenticationService.java +++ b/src/main/java/mate/academy/service/AuthenticationService.java @@ -17,8 +17,5 @@ public class AuthenticationService { public boolean login(String email, String password) { User user = this.userService.findByEmail(email); return user != null && user.getPassword().equals(password); - return true; - } - return false; } }