- PasswordForgotRequestDto, PasswordResetRequestDto 생성 - IAuthService에 ForgotPasswordAsync, ResetPasswordAsync 추가 - ForgotPasswordAsync: UUID 토큰 생성 → ITokenStore 저장(30분) → 이메일 발송 - ResetPasswordAsync: 토큰 검증 → BCrypt 해싱 → 비밀번호 저장 - PasswordController 생성 (v1/in/account/password) - 보안: forgot에서 이메일 미존재 시에도 동일한 성공 응답
11 lines
328 B
C#
11 lines
328 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace SPMS.Application.DTOs.Account;
|
|
|
|
public class PasswordForgotRequestDto
|
|
{
|
|
[Required(ErrorMessage = "이메일은 필수입니다.")]
|
|
[EmailAddress(ErrorMessage = "올바른 이메일 형식이 아닙니다.")]
|
|
public string Email { get; set; } = string.Empty;
|
|
}
|