1
0
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:
Kyle Spearrin
2018-12-19 22:27:45 -05:00
parent 4a38713c4b
commit 951e8f562e
6 changed files with 121 additions and 51 deletions

View File

@ -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.");
}