- ChangePasswordRequestDto 추가 - IAuthService/AuthService에 ChangePasswordAsync 구현 - AuthController에 POST /v1/in/auth/password/change 엔드포인트 추가 - 현재 비밀번호 검증 및 BCrypt 해싱 적용 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
14 lines
486 B
C#
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;
|
|
}
|