From 2492491f320ff2a5939aae83e562ec5cc306e9d2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 27 Jul 2017 09:58:00 -0400 Subject: [PATCH] dont check if remember 2fa is enabled --- src/Core/IdentityServer/ResourceOwnerPasswordValidator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/IdentityServer/ResourceOwnerPasswordValidator.cs b/src/Core/IdentityServer/ResourceOwnerPasswordValidator.cs index d62adc711f..46201515f9 100644 --- a/src/Core/IdentityServer/ResourceOwnerPasswordValidator.cs +++ b/src/Core/IdentityServer/ResourceOwnerPasswordValidator.cs @@ -192,7 +192,7 @@ namespace Bit.Core.IdentityServer private async Task VerifyTwoFactor(User user, TwoFactorProviderType type, string token) { - if(!user.TwoFactorProviderIsEnabled(type)) + if(type != TwoFactorProviderType.Remember && !user.TwoFactorProviderIsEnabled(type)) { return false; }