feat: 최초 로그인 시 비밀번호 변경 강제 기능

- User 모델에 must_change_password 필드 추가
- UserService: createUser(), resetPassword()에서 플래그 설정
- ProfileService: changePassword()에서 플래그 해제
- EnsurePasswordChanged 미들웨어 추가
- 인증 라우트에 password.changed 미들웨어 적용
- 프로필 페이지에 비밀번호 변경 필요 알림 추가

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-01 23:44:56 +09:00
parent 817690f544
commit 7ea8997927
7 changed files with 92 additions and 5 deletions

View File

@@ -25,6 +25,7 @@ class User extends Authenticatable
'email',
'phone',
'password',
'must_change_password',
'options',
'profile_photo_path',
'role',
@@ -60,6 +61,7 @@ protected function casts(): array
'options' => 'array',
'is_active' => 'boolean',
'is_super_admin' => 'boolean',
'must_change_password' => 'boolean',
];
}