mirror of
https://github.com/bitwarden/server
synced 2025-12-15 07:43:54 +00:00
equivalent domains APIs and data models
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Bit.Core.Identity
|
||||
{
|
||||
var canGenerate = user.TwoFactorEnabled
|
||||
&& user.TwoFactorProvider.HasValue
|
||||
&& user.TwoFactorProvider.Value == TwoFactorProvider.Authenticator
|
||||
&& user.TwoFactorProvider.Value == TwoFactorProviderType.Authenticator
|
||||
&& !string.IsNullOrWhiteSpace(user.AuthenticatorKey);
|
||||
|
||||
return Task.FromResult(canGenerate);
|
||||
|
||||
Reference in New Issue
Block a user