Use safe defaults for User (fail early)

This commit is contained in:
ig 2023-03-09 11:01:48 +01:00
parent ba79b2d16f
commit 99ef91b7be
1 changed files with 5 additions and 5 deletions

View File

@ -5,11 +5,11 @@ namespace InnovEnergy.App.Backend.Model;
public class User : TreeNode public class User : TreeNode
{ {
[Indexed] [Indexed]
public String Email { get; set; } = ""; public String Email { get; set; } = null!;
public Boolean HasWriteAccess { get; set; } public Boolean HasWriteAccess { get; set; } = false;
public String S3Key { get; set; } public String S3Key { get; set; } = null!;
public String Salt { get; set; } public String Salt { get; set; } = null!;
public String Password { get; set; } public String Password { get; set; } = null!;
// TODO: must reset pwd // TODO: must reset pwd
} }