diff --git a/src/Api/IdentityServer/ResourceOwnerPasswordValidator.cs b/src/Api/IdentityServer/ResourceOwnerPasswordValidator.cs index 748008179c..e0c9221fdd 100644 --- a/src/Api/IdentityServer/ResourceOwnerPasswordValidator.cs +++ b/src/Api/IdentityServer/ResourceOwnerPasswordValidator.cs @@ -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>(); - _identityOptions = httpContext.RequestServices.GetRequiredService>()?.Value ?? new IdentityOptions(); - _jwtBearerIdentityOptions = httpContext.RequestServices.GetRequiredService>()?.Value; + _identityOptions = + httpContext.RequestServices.GetRequiredService>()?.Value ?? new IdentityOptions(); + _jwtBearerIdentityOptions = + httpContext.RequestServices.GetRequiredService>()?.Value; _jwtBearerOptions = Core.Identity.JwtBearerAppBuilderExtensions.BuildJwtBearerOptions(_jwtBearerIdentityOptions); }