mirror of
https://github.com/byo-software/steam-openid-connect-provider.git
synced 2025-01-09 18:06:22 +00:00
Remove UserValidators before creating account
We do not need to check if the username etc is valid. Steam usernames can contain spaces, UTF8 characters, etc.
This commit is contained in:
parent
a18758cf41
commit
9938d014a7
1 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Security.Claims;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
|
@ -66,6 +67,8 @@ namespace SteamOpenIdConnectProxy
|
|||
var userId = info.Principal.FindFirstValue(ClaimTypes.NameIdentifier);
|
||||
|
||||
var user = new IdentityUser { UserName = userName, Id = userId };
|
||||
|
||||
_userManager.UserValidators.Clear();
|
||||
var result = await _userManager.CreateAsync(user);
|
||||
if (result.Succeeded)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue