initial commit from an older template
This commit is contained in:
19
Models/Database/ApplicationUser.cs
Executable file
19
Models/Database/ApplicationUser.cs
Executable file
@@ -0,0 +1,19 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using GamificationService.Utils;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
|
||||
namespace GamificationService.Models.Database;
|
||||
|
||||
public class ApplicationUser : IdentityUser<long>
|
||||
{
|
||||
[Required(ErrorMessage = "Username is required")]
|
||||
[StringLength(50, ErrorMessage = "Username must be less than 50 characters")]
|
||||
public string Username { get; set; } = null!;
|
||||
public bool TwoFactorEnabled { get; set; }
|
||||
public string? TwoFactorSecret { get; set; }
|
||||
public bool EmailConfirmed { get; set; }
|
||||
public List<TwoFactorProvider> TwoFactorProviders { get; set; } = new List<TwoFactorProvider>();
|
||||
public List<RefreshToken> RefreshTokens { get; set; } = new List<RefreshToken>();
|
||||
|
||||
public List<UserRole> UserRoles { get; set; } = new List<UserRole>();
|
||||
}
|
||||
Reference in New Issue
Block a user