- verify API: verifySessionId 기반 입력 지원 (email 하위호환) - verify API: 시도 횟수 5회 제한 (30분 TTL) - verify API: 응답에 verified, nextAction 필드 추가 - resend API 신규: POST /v1/in/auth/email/verify/resend - resend API: 60초 쿨다운, 기존 코드 자동 무효화 - email_verify TTL 1시간→5분 변경 (signup/login 포함) - ErrorCodes 추가: VerifyResendCooldown(116), VerifyAttemptExceeded(117) Closes #205
19 lines
560 B
C#
19 lines
560 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Auth;
|
|
|
|
public class EmailVerifyRequestDto
|
|
{
|
|
[JsonPropertyName("verify_session_id")]
|
|
public string? VerifySessionId { get; set; }
|
|
|
|
[EmailAddress(ErrorMessage = "올바른 이메일 형식이 아닙니다.")]
|
|
[JsonPropertyName("email")]
|
|
public string? Email { get; set; }
|
|
|
|
[Required(ErrorMessage = "인증 코드는 필수입니다.")]
|
|
[JsonPropertyName("code")]
|
|
public string Code { get; set; } = string.Empty;
|
|
}
|