hallo
This commit is contained in:
15
Desktop/hallo/LEA/Models/ApplicationUser.cs
Normal file
15
Desktop/hallo/LEA/Models/ApplicationUser.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
|
||||
namespace LEA.Models;
|
||||
|
||||
public class ApplicationUser : IdentityUser
|
||||
{
|
||||
[Required(ErrorMessage = "Bitte geben Sie Ihren vollständigen Namen an.")]
|
||||
[StringLength(100, ErrorMessage = "Der Name darf maximal {1} Zeichen lang sein.")]
|
||||
[Display(Name = "Vollständiger Name")]
|
||||
public string FullName { get; set; } = string.Empty;
|
||||
|
||||
[Display(Name = "Registriert am")]
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
Reference in New Issue
Block a user