- Admin 엔티티에 AgreeTerms, AgreePrivacy, AgreedAt 필드 추가 - SignupRequestDto에 동의 필드 추가 (필수 검증) - SignupResponseDto에 verifySessionId, emailSent 응답 추가 - AuthService.SignupAsync: 동의 검증, verify session 생성, 메일 발송 try-catch - ErrorCodes에 TermsNotAgreed(114), PrivacyNotAgreed(115) 추가 - EF Core 마이그레이션 AddConsentFieldsToAdmin 생성/적용 Closes #202
19 lines
467 B
C#
19 lines
467 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Auth;
|
|
|
|
public class SignupResponseDto
|
|
{
|
|
[JsonPropertyName("admin_code")]
|
|
public string AdminCode { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("email")]
|
|
public string Email { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("verify_session_id")]
|
|
public string? VerifySessionId { get; set; }
|
|
|
|
[JsonPropertyName("email_sent")]
|
|
public bool EmailSent { get; set; }
|
|
}
|