SPMS_API/SPMS.Application/DTOs/Auth/ChangePasswordRequestDto.cs
seonkyu.kim 9b9ca64b10 feat: 관리자 비밀번호 변경 API 구현 (#40)
- ChangePasswordRequestDto 추가
- IAuthService/AuthService에 ChangePasswordAsync 구현
- AuthController에 POST /v1/in/auth/password/change 엔드포인트 추가
- 현재 비밀번호 검증 및 BCrypt 해싱 적용

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-09 23:22:28 +09:00

14 lines
486 B
C#

using System.ComponentModel.DataAnnotations;
namespace SPMS.Application.DTOs.Auth;
public class ChangePasswordRequestDto
{
[Required(ErrorMessage = "현재 비밀번호를 입력해주세요.")]
public string CurrentPassword { get; set; } = string.Empty;
[Required(ErrorMessage = "새 비밀번호를 입력해주세요.")]
[MinLength(8, ErrorMessage = "비밀번호는 8자 이상이어야 합니다.")]
public string NewPassword { get; set; } = string.Empty;
}