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:
parent
783c46afa6
commit
2492491f32
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user