Automatic formatting changes

This commit is contained in:
Mark Ettema 2021-05-09 20:37:16 +07:00
parent 62dd979a80
commit e8520a6128
3 changed files with 5 additions and 5 deletions

View file

@ -41,7 +41,7 @@ namespace SteamOpenIdConnectProvider.Controllers
public async Task<IActionResult> ExternalLoginCallback(string returnUrl = null, string remoteError = null)
{
returnUrl ??= Url.Content("~/");
if (remoteError != null)
{
throw new Exception($"Error from external provider: {remoteError}");
@ -62,7 +62,7 @@ namespace SteamOpenIdConnectProvider.Controllers
var userName = info.Principal.FindFirstValue(ClaimTypes.Name);
var userId = info.Principal.FindFirstValue(ClaimTypes.NameIdentifier);
var user = new IdentityUser { UserName = userName, Id = userId };
_userManager.UserValidators.Clear();

View file

@ -1,6 +1,6 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq;
using IdentityServer4;
using IdentityServer4.Models;

View file

@ -35,7 +35,7 @@ namespace SteamOpenIdConnectProvider.Profile
public SteamProfileService(
UserManager<IdentityUser> userManager,
IUserClaimsPrincipalFactory<IdentityUser> claimsFactory,
IConfiguration configuration,
IConfiguration configuration,
HttpClient httpClient)
{
_userManager = userManager;