Skip to content

Commit

Permalink
refactor: 유저 입장에서 LoginReq 알지못하기에 String으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
urinaner committed Nov 6, 2024
1 parent 8a53824 commit 3f81ac2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/yj/sejongauth/domain/AuthService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3f81ac2

Please sign in to comment.