Repository navigation
feat(users): 회원 탈퇴 기능구현 - #88
Merged
Merged
Conversation
회원 탈퇴 시 원본 사진 등 개인정보 객체를 제거하기 위한 best-effort 삭제 헬퍼. 빈 key 는 no-op, 실패 시 False 반환.
개인정보(원본이미지·닉네임·이메일·비밀번호·생년월일·직업)를 삭제/익명화하고 is_active=False 로 비활성화한다. 이용 로그(퀘스트·피드·토큰·생성 횟수)는 보존하기 위해 User 행은 삭제하지 않는다. - 원본 사진: SourceImage 행 삭제 + Character.origin_img_url 비움 + S3 best-effort 삭제 - 이메일은 충돌 방지 센티넬, 비밀번호는 set_unusable_password - birth 는 not-null 이라 센티넬 날짜(1900-01-01), job 은 빈값 - SocialAccount(외부 신원 링크) 삭제
이메일 가입자는 현재 비밀번호 일치 시, 소셜 가입자는 비번 없이 탈퇴한다. 전 기기 자동로그인 토큰을 무효화하고 withdraw_user 로 개인정보를 익명화한 뒤 리프레시 쿠키를 비우고 204 를 반환한다.
이메일 가입자 비번 일치/불일치/누락, 소셜 가입자 비번 없이 탈퇴, 탈퇴 후 인증 차단을 검증한다. 원본이미지 삭제·PII 익명화·로그 보존도 확인.
bigmooon
approved these changes
Jun 26, 2026
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.
Summary
Changes
Checklist
apps/,common/,config/,infrastructure/)config.settings.*Test
make testmake lintNotes