1
0
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:
Kyle Spearrin
2017-01-09 22:20:34 -05:00
parent 90607f6d93
commit 7abde8c771
18 changed files with 138 additions and 29 deletions

View File

@@ -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);