aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Models/User.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Data/Models/User.cs')
-rw-r--r--src/DevHive.Data/Models/User.cs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/DevHive.Data/Models/User.cs b/src/DevHive.Data/Models/User.cs
index 62624e1..a3731cb 100644
--- a/src/DevHive.Data/Models/User.cs
+++ b/src/DevHive.Data/Models/User.cs
@@ -1,5 +1,4 @@
using System;
-using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.AspNetCore.Identity;
@@ -8,24 +7,14 @@ namespace DevHive.Data.Models
[Table("Users")]
public class User : IdentityUser<Guid>, IModel
{
- [Required]
- [MinLength(3)]
- [MaxLength(50)]
- [Display(Name = "Username")]
public override string UserName
{
get => base.UserName;
set => base.UserName = value;
}
- [Required]
- [MinLength(3)]
- [MaxLength(30)]
public string FirstName { get; set; }
- [Required]
- [MinLength(3)]
- [MaxLength(30)]
public string LastName { get; set; }
public string ProfilePicture { get; set; }