improvement: 비밀번호 변경 보안 정책 적용 (#251) #252
No reviewers
SPMS/Owners
Labels
No Label
Priority
High
Priority
Low
Priority
Medium
Priority
Non
Priority
Urgent
Status
Available
Status
Done
Status
In Progress
Type
Bug
Type
Chore
Type
Design
Type
Documentation
Type
Feature
Type
Improvement
Type
Refactor
Type
Research
Type
Task
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SPMS/SPMS_API#252
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "improvement/#251-password-policy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 작업 요약
re_login_required: true응답 힌트 제공🔗 관련 이슈 (Related Issues)
Closes #251
🛠️ 작업 내용 (Changes)
SPMS.Domain/Common/ErrorCodes.cs— PasswordPolicyViolation(123), PasswordReuseForbidden(124) 추가SPMS.Application/DTOs/Auth/ChangePasswordRequestDto.cs— MaxLength + RegularExpression 정책 추가SPMS.Application/DTOs/Auth/ChangePasswordResponseDto.cs— 신규 (re_login_required)SPMS.Application/Interfaces/IAuthService.cs— 반환 타입 Task → TaskSPMS.Application/Services/AuthService.cs— 동일 비밀번호 재사용 금지 + 세션 무효화 로직SPMS.API/Controllers/AuthController.cs— Swagger 문서 보강 + 응답 타입 변경📢 리뷰어 참고 사항 (To Reviewers)
RegularExpression)으로 1차 검증, 동일 비밀번호는 서비스 레이어에서 BCrypt 비교ChangePasswordAsync반환 타입이Task→Task<ChangePasswordResponseDto>로 변경됨✅ 체크리스트 (Self Checklist)
📸 스크린샷 / 테스트 로그 (Screenshots/Logs)