Base template solution with tests, authentication, support for admin accounts, prepared tests for auth, basic error handling system used in auth.

This commit is contained in:
Matěj Kubíček
2026-04-18 17:37:38 +02:00
parent 5a2e76fefd
commit f50bec167f
101 changed files with 83814 additions and 0 deletions
@@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
namespace TemplateWeb.Models;
public class AuthRegisterViewModel
{
[Required] [Display(Name = "Username")] [StringLength(50, MinimumLength = 3)]
public string UserName { get; set; }
[Required] [EmailAddress] [Display(Name = "Email")]
public string Email { get; set; }
[Required] [DataType(DataType.Password)] [Display(Name = "Password")]
public string Password { get; set; }
[Display(Name = "Confirm password")]
[Required] [DataType(DataType.Password)] [Compare("Password")]
public string ConfirmPassword { get; set; }
public string? ReturnUrl { get; set; }
}