From 3f81ac28fb052c33156122c03398f6cfd45bccbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=A5=EC=98=81=EC=9E=AC?= Date: Wed, 6 Nov 2024 14:33:09 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=9C=A0=EC=A0=80=20=EC=9E=85?= =?UTF-8?q?=EC=9E=A5=EC=97=90=EC=84=9C=20LoginReq=20=EC=95=8C=EC=A7=80?= =?UTF-8?q?=EB=AA=BB=ED=95=98=EA=B8=B0=EC=97=90=20String=EC=9C=BC=EB=A1=9C?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/yj/sejongauth/domain/AuthService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/yj/sejongauth/domain/AuthService.java b/src/main/java/org/yj/sejongauth/domain/AuthService.java index 2c975b4..66db927 100644 --- a/src/main/java/org/yj/sejongauth/domain/AuthService.java +++ b/src/main/java/org/yj/sejongauth/domain/AuthService.java @@ -19,7 +19,8 @@ public class AuthService { private final String INVALID_URL = "URL이 유효하지 않습니다."; private final String CONTAINS_HTML = "로그인 정보가 올바르지 않습니다."; - public boolean authenticate(LoginReq loginReq) { + public boolean authenticate(String userId, String password) { + LoginReq loginReq = new LoginReq(userId, password); try { fetchJsessionId(); return attemptLogin(loginReq);