Skip to content

Commit

Permalink
Revert "no longer cache remember me token (#3267)"
Browse files Browse the repository at this point in the history
This reverts commit c024b4a.
  • Loading branch information
trmartin4 committed Sep 15, 2023
1 parent 6cd22ab commit c857e22
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Identity/IdentityServer/BaseRequestValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,7 @@ protected async Task ValidateAsync(T context, ValidatedTokenRequest request,
}
return;
}
if (twoFactorProviderType != TwoFactorProviderType.Remember)
{
await Core.Utilities.DistributedCacheExtensions.SetAsync(_distributedCache, cacheKey, twoFactorToken, _cacheEntryOptions);
}
await Core.Utilities.DistributedCacheExtensions.SetAsync(_distributedCache, cacheKey, twoFactorToken, _cacheEntryOptions);
}
else
{
Expand Down

0 comments on commit c857e22

Please sign in to comment.