Skip to content

Commit

Permalink
feat: reaname settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ksavosteev committed Jan 12, 2024
1 parent e8db4d8 commit 882094d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ public async Task<ActionResult> Exchange()
// Validate the username/password parameters and ensure the account is not locked out.
var result = await _signInManager.CheckPasswordSignInAsync(user, openIdConnectRequest.Password, lockoutOnFailure: true);

var context = new Dictionary<string, object>()
var context = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
{
{ "explicitErrors", _passwordLoginOptions.ExplicitErrors },
{ "detailedErrors", _passwordLoginOptions.DetailedErrors },
{ "storeId", openIdConnectRequest.Scope },
};

foreach (var loginValidation in _userSignInValidators.OrderByDescending(x => x.Priority))
foreach (var loginValidation in _userSignInValidators.OrderByDescending(x => x.Priority).ThenBy(x => x.GetType().Name))
{
var validationErrors = await loginValidation.ValidateUserAsync(user, result, context);
var error = validationErrors.FirstOrDefault();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class PasswordLoginOptions

public string AuthenticationType { get; set; } = "Password";

public bool ExplicitErrors { get; set; }
public bool DetailedErrors { get; set; }

public int Priority { get; set; }
}
Expand Down

0 comments on commit 882094d

Please sign in to comment.