mirror of
https://github.com/bitwarden/server
synced 2026-01-04 01:23:25 +00:00
reference OrganizationMembership instead
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Bit.Core.Identity
|
||||
public async Task<bool> CanGenerateTwoFactorTokenAsync(UserManager<User> manager, User user)
|
||||
{
|
||||
var provider = user.GetTwoFactorProvider(TwoFactorProviderType.Authenticator);
|
||||
if(string.IsNullOrWhiteSpace((string)provider.MetaData["Key"]))
|
||||
if(string.IsNullOrWhiteSpace((string)provider?.MetaData["Key"]))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user