mirror of
https://github.com/bitwarden/server.git
synced 2025-01-22 21:51:22 +01:00
formatting
This commit is contained in:
parent
d1a5421f69
commit
ac18893d67
@ -82,7 +82,8 @@ namespace Bit.Api.IdentityServer
|
||||
return;
|
||||
}
|
||||
|
||||
if(!twoFactorRequest || await _userManager.VerifyTwoFactorTokenAsync(user, twoFactorProvider, twoFactorToken))
|
||||
if(!twoFactorRequest ||
|
||||
await _userManager.VerifyTwoFactorTokenAsync(user, twoFactorProvider, twoFactorToken))
|
||||
{
|
||||
var device = await SaveDeviceAsync(user, context);
|
||||
BuildSuccessResult(user, context, device);
|
||||
@ -100,8 +101,10 @@ namespace Bit.Api.IdentityServer
|
||||
{
|
||||
var httpContext = _httpContextAccessor.HttpContext;
|
||||
_userManager = httpContext.RequestServices.GetRequiredService<UserManager<User>>();
|
||||
_identityOptions = httpContext.RequestServices.GetRequiredService<IOptions<IdentityOptions>>()?.Value ?? new IdentityOptions();
|
||||
_jwtBearerIdentityOptions = httpContext.RequestServices.GetRequiredService<IOptions<JwtBearerIdentityOptions>>()?.Value;
|
||||
_identityOptions =
|
||||
httpContext.RequestServices.GetRequiredService<IOptions<IdentityOptions>>()?.Value ?? new IdentityOptions();
|
||||
_jwtBearerIdentityOptions =
|
||||
httpContext.RequestServices.GetRequiredService<IOptions<JwtBearerIdentityOptions>>()?.Value;
|
||||
_jwtBearerOptions = Core.Identity.JwtBearerAppBuilderExtensions.BuildJwtBearerOptions(_jwtBearerIdentityOptions);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user