Skip to content

Commit

Permalink
feat/#507: execute 메소드명을 login로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
LJH098 authored and hwangdaesun committed Oct 9, 2024
1 parent 4bfde62 commit 5e56ee7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class AuthController {
@ApiErrorExceptionsExample(LoginExceptionDocs.class)
public ApiResponse<ApiResponse.CustomBody<Void>> login(
@RequestBody @Valid LoginRequest loginRequest, HttpServletResponse response) {
TokenDTO tokenDTO = authUsecase.execute(loginRequest);
TokenDTO tokenDTO = authUsecase.login(loginRequest);
response.setHeader(AuthConstants.AUTH_HEADER.getValue(), tokenDTO.accessToken());
setCookie(response, tokenDTO.refreshToken());
return ApiResponseGenerator.success(HttpStatus.OK);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@Component
public interface AuthUsecase {
TokenDTO execute(LoginRequest request);
TokenDTO login(LoginRequest request);

TokenDTO reIssueToken(String accessToken, String refreshToken, HttpRequestDTO requestDTO);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class AuthService implements AuthUsecase {
private final RedisAdapter redisAdapter;

@Override
public TokenDTO execute(LoginRequest request) {
public TokenDTO login(LoginRequest request) {
MemberEntity member = memberPort.findCheckedMemberByEmail(request.email());
if (!bCryptPasswordEncoder.matches(request.password(), member.getPassword())) {
throw PasswordMismatchException.EXECPTION;
Expand Down

0 comments on commit 5e56ee7

Please sign in to comment.