-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Refactor] 로그인 에러 페이지 반환 #151
The head ref may contain hidden characters: "refactor/#115-\uB85C\uADF8\uC778-\uC5D0\uB7EC-\uD398\uC774\uC9C0-\uBC18\uD658"
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드상의 문제는 보이지 않아 코멘트로 남깁니다!
우선 이슈보시면 아시겠지만, 클라이언트에서 mbti값을 대문자가 아닌 소문자로 입력했을 때 발생하는 오류에 대해 처리해주셔야 될 것 같습니다!
또한 현재 뷰 파일이 .gitignore
때문에 올라오지 않고있습니다.
figma에 있는 로그인 관련 에러페이지가 있긴한데,, 직접 구현.. 은 어려워보이니 프론트랑 협의후 프론트 페이지로 리다이렉트 해주는게 맞을 것 같습니다.
마지막으로 PR 컨벤션 준수 부탁드립니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
예외 처리에 대한 코드 수정 모두 확인했습니다. 여러 케이스를 고려해 예외처리 해주신 부분과 도메인이 맞지 않는 경우 다른 페이지를 리다이렉트 해주는 부분 모두 이상 없이 구현된 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨어요!
CommonException commonException = (CommonException)cause; | ||
if (commonException.getErrorCode() == ErrorCode.INVALID_EMAIL_DOMAIN) { | ||
log.error("가천대 이메일이 아님: {}", exception.getMessage()); | ||
response.sendRedirect("/invalid-email.html"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
가천대 이메일이 아닐 경우 따로 리다이렉트 해주는 부분 좋습니다!
개요
가천대 계정으로 로그인 한 것이 아닐 경우 나타나는 뷰 로직을 추가하였습니다.


추가로, 프로필 정보 수정 시, 원하는 필드만 수정가능하게끔 코드 수정 하였습니다.
data 필드 중 ,닉네임 mbti중 바꾸고 싶은 필드의 값만 넣어주면 됩니다.
프로필을 바꾸고싶으면 data는 안넣어주시면 됩니다
PR 유형
어떤 변경 사항이 있나요?
PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.
📣 To Reviewers