From 8b40d27710e532a43aaf1eb198be64af1a2e576e Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sun, 6 Nov 2022 17:04:29 -0600 Subject: AƱadidos DTOs y Automapper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Models/UserAccount.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Models/UserAccount.cs') 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? Groups { get; set; } - private PasswordHasher _hasher; + private PasswordHasher _hasher; public UserAccount() { _hasher = new PasswordHasher(); -- cgit v1.2.3