Added User with ability to login and register. By default, user is not an admin. DTO expects an integer and will convert to Boolean.

This commit is contained in:
Joseph Milazzo 2020-12-13 16:07:25 -06:00
parent 2b521924d0
commit 5da41ea6f3
12 changed files with 239 additions and 10 deletions

View file

@ -13,6 +13,7 @@ namespace API.Entities
public byte[] PasswordSalt { get; set; }
public DateTime Created { get; set; } = DateTime.Now;
public DateTime LastActive { get; set; }
public bool IsAdmin { get; set; }
[ConcurrencyCheck]
public uint RowVersion { get; set; }
@ -21,8 +22,6 @@ namespace API.Entities
{
RowVersion++;
}
}
}