From ac18893d673180c3e6aff9e7069a5a8752560c66 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 25 Jan 2017 00:35:52 -0500 Subject: [PATCH] formatting --- src/Api/IdentityServer/ResourceOwnerPasswordValidator.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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); }