Use safe defaults for User (fail early)
This commit is contained in:
parent
ba79b2d16f
commit
99ef91b7be
|
@ -5,11 +5,11 @@ namespace InnovEnergy.App.Backend.Model;
|
|||
public class User : TreeNode
|
||||
{
|
||||
[Indexed]
|
||||
public String Email { get; set; } = "";
|
||||
public Boolean HasWriteAccess { get; set; }
|
||||
public String S3Key { get; set; }
|
||||
public String Salt { get; set; }
|
||||
public String Password { get; set; }
|
||||
public String Email { get; set; } = null!;
|
||||
public Boolean HasWriteAccess { get; set; } = false;
|
||||
public String S3Key { get; set; } = null!;
|
||||
public String Salt { get; set; } = null!;
|
||||
public String Password { get; set; } = null!;
|
||||
|
||||
// TODO: must reset pwd
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue