feat: 사업장 회원가입과 초기 관리자 계정 생성 구현#44
Merged
Merged
Conversation
16 tasks
chaeliki
approved these changes
Jul 24, 2026
chaeliki
approved these changes
Jul 24, 2026
hywznn
marked this pull request as ready for review
July 24, 2026 04:59
This file contains hidden or 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
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.
왜 필요한가요?
Closes #43
Client에는 사업장명·담당자명·이메일·비밀번호를 받는 회원가입 화면이 있지만, 기존 코드는 API를 호출하지 않고 성공 화면으로 이동했습니다. Server에도 로그인·재발급·로그아웃만 있고 회원가입 endpoint가 없어 실제 Company와 계정이 생성되지 않았습니다.
무엇이 바뀌나요?
Public API
POST /api/v1/auth/signup{ "company_name": "한빛정밀", "display_name": "김경민", "email": "name@company.com", "password": "8자 이상의 비밀번호" }201 Created로 Company와 최초ADMIN계정 정보를 반환합니다.workplace/name은company_name/display_name으로 변환하고confirmPassword는 전송하지 않습니다.Auth·DB
ADMIN으로 고정합니다.409 EMAIL_ALREADY_REGISTERED로 처리합니다.user_account.display_name을 추가했습니다.display_name을 추가해 Client가 이메일 앞부분 대신 실제 담당자명을 표시할 수 있게 했습니다.문서·설정
DEMO_SEED_ADMIN_DISPLAY_NAME을 추가했습니다.보안·정합성 검증
role,company_id같은 알 수 없는 field 거부이번 PR에서 하지 않는 것
위 항목은 Client 또는 후속 보안·제품 정책 이슈에서 진행합니다.
검증
./gradlew test --tests 'com.fowoco.server.auth.*'./gradlew clean test buildgit diff --check모두 통과했습니다.
리뷰 포인트
ADMIN으로 고정하는 정책display_name기본값과 기존 UserAccount 호환성