Skip to content

Commit

Permalink
Make the ConditionService ignore case for the provider
Browse files Browse the repository at this point in the history
  • Loading branch information
marchermans committed Nov 11, 2024
1 parent 458da4f commit e2c3bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LDTTeam.Authentication.Server/Services/ConditionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class ConditionService(DatabaseContext db, IServiceProvider services, ILo

IdentityUserLogin<string>? loginInfo = await db.UserLogins
.FirstOrDefaultAsync(x =>
x.LoginProvider == provider &&
x.LoginProvider.ToLower() == provider.ToLower() &&
x.ProviderKey == providerKey, cancellationToken: cancellationToken);

var userId = loginInfo?.UserId;
Expand Down

0 comments on commit e2c3bfa

Please sign in to comment.