This commit is contained in:
@@ -207,12 +207,20 @@ namespace sscs.verbs
|
||||
|
||||
private WrappedObject DoRemoveAllSecrets(SecretStore ssStore, WrappedObject wo)
|
||||
{
|
||||
string sKeyChainID = wo.GetKeychainID();
|
||||
if (sKeyChainID != null)
|
||||
|
||||
if (!ssStore.IsStoreLocked())
|
||||
{
|
||||
KeyChain kc = ssStore.GetKeyChain(sKeyChainID);
|
||||
kc.RemoveAllSecrets();
|
||||
ssStore.UpdatePersistentStore();
|
||||
string sKeyChainID = wo.GetKeychainID();
|
||||
if (sKeyChainID != null)
|
||||
{
|
||||
KeyChain kc = ssStore.GetKeyChain(sKeyChainID);
|
||||
kc.RemoveAllSecrets();
|
||||
ssStore.UpdatePersistentStore();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
wo.SetError(constants.RetCodes.FAILURE, "Store locked");
|
||||
}
|
||||
|
||||
return wo;
|
||||
|
||||
Reference in New Issue
Block a user