-
Notifications
You must be signed in to change notification settings - Fork 39
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
[데이먼] 스프링 카페 4단계 - 로그인 구현 #151
Open
dukcode
wants to merge
34
commits into
codesquad-members-2022:dukcode
Choose a base branch
from
dukcode:cafe-basic-4
base: dukcode
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- SignUpUserDto 클래스 추가 - UserController 에서 로그인 시 SignUpUserDto 이용 하도록 업데이트 - controller 패키지 이동
- LoginUserDto 추가 - fogin.html Thymeleaf 적용 - fogin_failed.html Thymeleaf 적용 - UserService login() 메서드 추가 - fragment.html 경로 오류 수정
- 로그인 홈 html 생성 - UserController login() 메서드 세션 적용 - HomeController 클래스 생성 - QuestionController에 있던 home() 메서드 HomeController로 이동 - home()메서드 로그인 여부에 따라 다른 view mapping
- UserController logout() 메서드 구현
- SessionConst 클래스 생성
- fragment_login.html index_login.html 삭제 - fragment.html session 유무에 따라 if문 작성 - Controller에서 index_login view mapping 삭제
- User, LoginUserDto: validation annotation 업데이트 - JDBCTemplateRepository: findByUserId(), findById() null 반환하도록 업데이트 - application.properties, errors.properties: 에러 메세지 출력을 위한 설정 업데이트 - login_failed.html: 에러 메세지 동적으로 적용(Thymeleaf)
- login_failed.html: 삭제 - login.html: 동적 error메세지 출력 - UserController: GET /users/login 시 Model에 LoginUserDto 포함
- UserController: signUpForm() 메서드 Model에 SignUpUserDto 담도록 업데이트 - UserController: signUp() 메서드 validation 추가 - errors.properties: name, email 관련 에러 메세지 추가 - form.html: 에러있을 시 동적 렌더링 추가
- SignUpUserDto와 UpdateUserDto 같으므로 UserDto로 통합 - UserController: UserDto사용 하도록 업데이트 - UserController: 회원가입 메서드 중복 아이디 검증 기능 구현 - errors.properties: 중복 아이디 가입 에러메세지 업데이트
- UserController: update 관련 함수 아이디 변경 validation 업데이트 - errors.properties: 아이디 변경 관련 에러메세지 추가 - update.html: 동적 에러메시지 적용
- 로그인 성공시 웰컴페이지로 리다이렉트 하도록 변경
- POST users/new에서 POST /users 로 변경 - POST users/{userId}/update에서 POST /user/{userId} 로 변경 - POST questions/new에서 POST /questions 로 변경
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
안녕하세요! 코드리뷰를 반영해 4단계 진행과정 PR요청드립니다.
4단계 기능 요구사항
4단계 프로그래밍 요구사항
4단계 추가 요구사항
개인정보 수정 기능 추가
Validation
[전체] 공백 검증
[전체] 형식 검증
가입 시
로그인 시
회원 정보 수정