initial commit from an older template

This commit is contained in:
2025-09-20 22:33:35 +03:00
commit b6778046c2
134 changed files with 6657 additions and 0 deletions

21
Models/DTO/AuthDTO.cs Executable file
View File

@@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
namespace GamificationService.Models.DTO;
public class AuthDTO
{
[Required]
[StringLength(50, MinimumLength = 3, ErrorMessage = "Username must be between 3 and 50 characters")]
public string Username { get; set; } = null!;
[Required]
[EmailAddress(ErrorMessage = "Invalid email address")]
public string Email { get; set; } = null!;
[Required]
[StringLength(100, MinimumLength = 8, ErrorMessage = "Password must be between 8 and 100 characters")]
public string Password { get; set; } = null!;
[Required]
public bool RememberMe { get; set; }
}