From d3d4bd0469e5e193c3b6640e9414bfb73b839d9b Mon Sep 17 00:00:00 2001 From: Pavel Sofronov Date: Sat, 6 Mar 2021 03:11:23 +0200 Subject: [PATCH] UserManager has RemovePasswordAsync method which call UpdatePasswordHash with empty password. So SetPasswordHashAsync should support empty password hash --- .../Stores/DocumentDbUserStore.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/AspNetCore.Identity.DocumentDb/Stores/DocumentDbUserStore.cs b/src/AspNetCore.Identity.DocumentDb/Stores/DocumentDbUserStore.cs index 91920fb..64423d2 100644 --- a/src/AspNetCore.Identity.DocumentDb/Stores/DocumentDbUserStore.cs +++ b/src/AspNetCore.Identity.DocumentDb/Stores/DocumentDbUserStore.cs @@ -570,11 +570,6 @@ public Task SetPasswordHashAsync(TUser user, string passwordHash, CancellationTo throw new ArgumentNullException(nameof(user)); } - if (passwordHash == null) - { - throw new ArgumentNullException(nameof(passwordHash)); - } - user.PasswordHash = passwordHash; return Task.CompletedTask;