mirror of
https://github.com/bitwarden/server
synced 2025-12-26 05:03:18 +00:00
refactor code to with user TwoFactorProviders
This commit is contained in:
@@ -168,7 +168,7 @@ namespace Bit.Core.Identity
|
||||
|
||||
public Task<bool> GetTwoFactorEnabledAsync(User user, CancellationToken cancellationToken)
|
||||
{
|
||||
return Task.FromResult(user.TwoFactorEnabled && user.TwoFactorProvider.HasValue);
|
||||
return Task.FromResult(user.TwoFactorIsEnabled());
|
||||
}
|
||||
|
||||
public Task SetSecurityStampAsync(User user, string stamp, CancellationToken cancellationToken)
|
||||
|
||||
Reference in New Issue
Block a user