From fe6710249aa896e6c00d2c56b4d1fb1a0cc16a8b Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Thu, 24 Jul 2025 21:07:22 -0700 Subject: [PATCH] Create DTO's for account --- src/Server/DTO/AuthenticationDTO.cs | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/Server/DTO/AuthenticationDTO.cs diff --git a/src/Server/DTO/AuthenticationDTO.cs b/src/Server/DTO/AuthenticationDTO.cs new file mode 100644 index 0000000..456ffcb --- /dev/null +++ b/src/Server/DTO/AuthenticationDTO.cs @@ -0,0 +1,47 @@ +namespace Auth.DTO { + + public class LoginRequest { + public string UserName { get; set; } = ""; + public string Password { get; set; } = ""; + public bool StayLoggedIn { get; set; } + } + + public class RegisterRequest { + public string Email { get; set; } = ""; + public string UserName { get; set; } = ""; + public string Password { get; set; } = ""; + } + + public class ChangePasswordRequest { + public string OldPassword { get; set; } = ""; + public string NewPassword { get; set; } = ""; + } + + public class AccountLockRequest { + public bool AccountLock { get; set; } + } + + public class SendVerifyEmailRequest { + public string UserName { get; set; } = ""; + } + + public class VerifyEmailRequest { + public string UserName { get; set; } = ""; + public string EmailToken { get; set; } = ""; + } + + public class SendResetPasswordRequest { + public string Email { get; set; } = ""; + } + + public class ResetPasswordRequest { + public string UserName { get; set; } = ""; + public string NewPassword { get; set; } = ""; + public string PasswordToken { get; set; } = ""; + } + + public class DeleteRequest { + public string Password { get; set; } = ""; + } + +} \ No newline at end of file