Skip to content

Conversation

@seonpilKim
Copy link
Contributor

@seonpilKim seonpilKim commented Oct 12, 2024

🍋 개요

🍊 변경 사항

  • 최종적으로 재설계된 auth 모듈을 반영하였어요.
  • DB schema 구조가 변경됨에 따라, DDL 파일에 변경사항을 반영하였어요.
  • accounts 정보를 auth 모듈에서 관리함에 따라, Username 확인, 비밀번호 암호화 로직, 계정 생성 로직 등을 auth 모듈에서 수행하도록 변경하였어요.

🥨 참고 사항

🍏 체크리스트

  • 변경된 파일마다 코드 정렬(CTRL + ALT + L)은 완료하였나요?
  • 설계된 내용대로 구현을 모두 완료하였나요?
  • 변경 사항에 대한 Test Code는 모두 작성하였나요?
  • Commit Message는 충분히 자세하게 작성되었나요?
  • Assignees, Label은 적용하였나요?

- add accounts table.
- modify members table.
- Moved checkUsernameAPI logic and tests from user domain to auth domain.
- Updated endpoint.
- Changed password column in accounts table to be nullable.
- Drop foreign key constraint to accounts table from members table.
- Modified RegisterMember API to accommodate the separation of member and account entities.
- Updated data handling and validation processes to align with the new structure.
- Made minimal changes to the login API to ensure basic functionality; further logic improvements are needed.
- added "DROP FUNCTION IF EXISTS generate_unique_hash_code".
@seonpilKim seonpilKim added 🛠 refactor 코드 리팩토링 D-7 7일 안에 리뷰를 완료해주세요. labels Oct 12, 2024
@seonpilKim seonpilKim self-assigned this Oct 12, 2024
@seonpilKim seonpilKim requested a review from a team as a code owner October 12, 2024 08:23
@seonpilKim seonpilKim linked an issue Oct 12, 2024 that may be closed by this pull request
Copy link

@Resilient923 Resilient923 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다행히도 저랑 코드 짜는 스타일이 비슷하신 것 같아요 션~!

다른 부분은 특이사항 없는 것 같습니다.

import com.titi.titi_auth.data.jpa.entity.AccountEntity;
import com.titi.titi_auth.domain.Account;

@Mapper

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P5(라고써야하나요..? 저 회사에서는 잡담은 그냥 P를 안붙이곤 합니다ㅎㅎ) : 오 Mapper 어노테이션 사용은 처음이네요

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저희 P1~P3만 사용하기로 얘기했던 것 같아요. Pn은 안쓰고 Request changes/Comment/Approve로 구분하면 될 것 같네요 ㅎㅎ

코드리뷰 그라운드 룰 논의

}

private void validatePassword(String rawPassword, Member member) {
/*private void validatePassword(String rawPassword, Member member) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P5 : 주석을 달아놓은 코드들은 추후사용 예정이나 다른 목적이 있으신걸까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

위 참고 사항 부분에 적어놓은 부분이 여기에요. 로그인 부분 개발할 때 변경될 부분입니다.

@seonpilKim
Copy link
Contributor Author

seonpilKim commented Oct 13, 2024

회원 정보 검증 조건 논의 결과에 따라, Nickname, Username, Password 검증식을 변경할 예정이에요.

  • Nickname : 최대 12글자

    Unicode. 비속어 필터링 등 닉네임 제한 고도화는 추후 논의

  • Username : {local}@{domain}, ^[a-zA-Z0-9._%+-]{1,64}@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$(?=.{0,255}$)
  • Passowrd : 최소 8글자, 최대 64글자 Unicode.

    주기적 비밀번호 변경 요구 x. 이상탐지 기능은 추후 개발

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

D-7 7일 안에 리뷰를 완료해주세요. 🛠 refactor 코드 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

일반 회원 가입 API 개선

3 participants