1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-22 21:51:22 +01:00

dont check if remember 2fa is enabled

This commit is contained in:
Kyle Spearrin 2017-07-27 09:58:00 -04:00
parent 783c46afa6
commit 2492491f32

View File

@ -192,7 +192,7 @@ namespace Bit.Core.IdentityServer
private async Task<bool> VerifyTwoFactor(User user, TwoFactorProviderType type, string token)
{
if(!user.TwoFactorProviderIsEnabled(type))
if(type != TwoFactorProviderType.Remember && !user.TwoFactorProviderIsEnabled(type))
{
return false;
}