Skip to content

Commit 7ee3bfe

Browse files
Merge pull request #63 from nullinside-development-group/bug/DbCrash
fix: exception when calling database
2 parents 9b9a096 + 0003a66 commit 7ee3bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nullinside.Api.Common.AspNetCore/Middleware/BasicAuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected override async Task<AuthenticateResult> HandleAuthenticateAsync() {
6060
.Include(i => i.Roles)
6161
.AsNoTracking()
6262
.FirstOrDefaultAsync(u => !string.IsNullOrWhiteSpace(u.Token) &&
63-
u.Token.Equals(token, StringComparison.InvariantCultureIgnoreCase) &&
63+
u.Token == token &&
6464
!u.IsBanned);
6565

6666
if (null == dbUser) {

0 commit comments

Comments
 (0)