Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
#66 예외 중복 코드 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
ypr821 authored and YPR committed Feb 10, 2022
1 parent b638ffa commit 30e2856
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class CheckLoginAspect {
private final HttpSession httpSession;

@Before("@annotation(com.flab.doorrush.domain.authentication.annotation.CheckLogin)")
public void checkLogin() throws AuthenticationCredentialsNotFoundException {
public void checkLogin(){
String currentId = (String) httpSession.getAttribute(AuthenticationService.LOGIN_SESSION);
if (!StringUtils.hasLength(currentId)) {
throw new AuthenticationCredentialsNotFoundException("로그인이 필요합니다.");
Expand Down

0 comments on commit 30e2856

Please sign in to comment.