summaryrefslogtreecommitdiff
path: root/Models/UserAccount.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Models/UserAccount.cs')
-rw-r--r--Models/UserAccount.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Models/UserAccount.cs b/Models/UserAccount.cs
index e3184ed..d96a8cb 100644
--- a/Models/UserAccount.cs
+++ b/Models/UserAccount.cs
@@ -6,11 +6,11 @@ namespace LibraryAPI.Models {
public long Id { get; set; }
[Required]
public string? Email { get; set; }
- private string? _password;
- [Required]
+ private string? _password;
+ [Required]
public string? Password { get { return _password; } set { _password = HashPassword(value); } }
public ICollection<GroupUserAccount>? Groups { get; set; }
- private PasswordHasher<UserAccount> _hasher;
+ private PasswordHasher<UserAccount> _hasher;
public UserAccount() {
_hasher = new PasswordHasher<UserAccount>();