1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05: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

View File

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