1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-23 03:01:23 +01:00

no longer cache remember me token (#3267)

This commit is contained in:
Ike 2023-09-13 06:08:25 -07:00 committed by GitHub
parent b6d32129e6
commit d3aceea377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,8 +163,11 @@ public abstract class BaseRequestValidator<T> where T : class
} }
return; return;
} }
if (twoFactorProviderType != TwoFactorProviderType.Remember)
{
await Core.Utilities.DistributedCacheExtensions.SetAsync(_distributedCache, cacheKey, twoFactorToken, _cacheEntryOptions); await Core.Utilities.DistributedCacheExtensions.SetAsync(_distributedCache, cacheKey, twoFactorToken, _cacheEntryOptions);
} }
}
else else
{ {
twoFactorRequest = false; twoFactorRequest = false;