Skip to content

Commit a9ddf72

Browse files
authored
Fix blocking call in FindByEmailAsync (#50603)
1 parent 9be5aeb commit a9ddf72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Identity/EntityFrameworkCore/src/UserOnlyStore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ public override async Task RemoveLoginAsync(TUser user, string loginProvider, st
452452
cancellationToken.ThrowIfCancellationRequested();
453453
ThrowIfDisposed();
454454

455-
return Task.FromResult(Users.Where(u => u.NormalizedEmail == normalizedEmail).SingleOrDefault());
455+
return Users.SingleOrDefaultAsync(u => u.NormalizedEmail == normalizedEmail, cancellationToken);
456456
}
457457

458458
/// <summary>

0 commit comments

Comments
 (0)