Also add session alias in secret service

This commit is contained in:
Zhenge Chen 2025-03-20 18:50:19 -07:00
parent 31c0b23890
commit 20982508b1
No known key found for this signature in database
GPG key ID: C1BEF3D3CF602F4B

View file

@ -30,6 +30,7 @@
namespace
{
constexpr auto DEFAULT_ALIAS = "default";
constexpr auto SESSION_ALIAS = "session";
}
namespace FdoSecrets
@ -173,6 +174,7 @@ namespace FdoSecrets
if (coll) {
// adding alias will automatically remove the association with previous collection.
coll->addAlias(DEFAULT_ALIAS).okOrDie();
coll->addAlias(SESSION_ALIAS).okOrDie();
}
m_insideEnsureDefaultAlias = false;