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:
parent
2b521924d0
commit
5da41ea6f3
12 changed files with 239 additions and 10 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue