mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05:00
Parse enum as to accept 0 values or full string values
This commit is contained in:
@ -30,6 +30,7 @@ using Bit.Core.Utilities;
|
||||
using Serilog;
|
||||
using Serilog.Events;
|
||||
using Bit.Api.IdentityServer;
|
||||
using Bit.Core.Enums;
|
||||
|
||||
namespace Bit.Api
|
||||
{
|
||||
@ -150,7 +151,7 @@ namespace Bit.Api
|
||||
})
|
||||
.AddUserStore<UserStore>()
|
||||
.AddRoleStore<RoleStore>()
|
||||
.AddTokenProvider<AuthenticatorTokenProvider>("Authenticator")
|
||||
.AddTokenProvider<AuthenticatorTokenProvider>(TwoFactorProviderType.Authenticator.ToString())
|
||||
.AddTokenProvider<EmailTokenProvider<User>>(TokenOptions.DefaultEmailProvider);
|
||||
|
||||
var jwtIdentityOptions = provider.GetRequiredService<IOptions<JwtBearerIdentityOptions>>().Value;
|
||||
|
Reference in New Issue
Block a user