mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
email token provider
This commit is contained in:
@ -844,7 +844,7 @@ namespace Bit.Core.Services
|
||||
|
||||
public async Task UpdateTwoFactorProviderAsync(Organization organization, TwoFactorProviderType type)
|
||||
{
|
||||
if(!type.ToString().StartsWith("Organization"))
|
||||
if(!type.ToString().Contains("Organization"))
|
||||
{
|
||||
throw new ArgumentException("Not an organization provider type.");
|
||||
}
|
||||
@ -867,7 +867,7 @@ namespace Bit.Core.Services
|
||||
|
||||
public async Task DisableTwoFactorProviderAsync(Organization organization, TwoFactorProviderType type)
|
||||
{
|
||||
if(!type.ToString().StartsWith("Organization"))
|
||||
if(!type.ToString().Contains("Organization"))
|
||||
{
|
||||
throw new ArgumentException("Not an organization provider type.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user