- Bug 169353. Prompt user for Desktop Password when Master Password is not present.
This commit is contained in:
@@ -29,6 +29,7 @@ using sscs.verbs;
|
||||
using sscs.cache;
|
||||
using sscs.common;
|
||||
using sscs.constants;
|
||||
using sscs.lss;
|
||||
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using System.IO;
|
||||
@@ -212,6 +213,10 @@ namespace sscs.verbs
|
||||
{
|
||||
return DoGetSecretIDs(ssStore, wo);
|
||||
}
|
||||
case MiCasaRequestReply.VERB_VALIDATE_DESKTOP_PWD:
|
||||
{
|
||||
return DoValidateDesktopPwd(ssStore, wo);
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
@@ -229,6 +234,24 @@ namespace sscs.verbs
|
||||
return wo;
|
||||
}
|
||||
|
||||
private WrappedObject DoValidateDesktopPwd(SecretStore ssStore, WrappedObject wo)
|
||||
{
|
||||
// let's validate the Desktop pwd
|
||||
|
||||
String sDesktopPwd = (String)wo.GetObject();
|
||||
bool bIsValid = ssStore.IsDesktopPassword(sDesktopPwd);
|
||||
if (bIsValid)
|
||||
{
|
||||
wo.SetObject("true");
|
||||
}
|
||||
else
|
||||
{
|
||||
wo.SetObject("false");
|
||||
}
|
||||
|
||||
return wo;
|
||||
}
|
||||
|
||||
private WrappedObject DoGetSecretIDs(SecretStore ssStore, WrappedObject wo)
|
||||
{
|
||||
if (!ssStore.IsStoreLocked())
|
||||
|
||||
@@ -154,6 +154,10 @@ namespace sscs.verbs
|
||||
#endif
|
||||
}
|
||||
|
||||
if (secretId.Length < 1 || key.Length < 1 || valStr.Length < 1)
|
||||
{
|
||||
CSSSLogger.DbgLog("Error in length");
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user