Code for Change Master Password
This commit is contained in:
@@ -115,6 +115,19 @@ namespace Novell.CASA
|
||||
{
|
||||
return NativeCalls.IsSecretPersistent(ssFlags,secretID);
|
||||
}
|
||||
|
||||
|
||||
public static bool ChangeMasterPassword(string sCurrentPassword, string sNewPassword)
|
||||
{
|
||||
if (sCurrentPassword == null || sNewPassword == null)
|
||||
{
|
||||
throw new miCasaException(miCasaException.NSSCS_E_INVALID_PARAM);
|
||||
}
|
||||
|
||||
if (sNewPassword.Length < 8)
|
||||
throw new miCasaException(miCasaException.NSSCS_E_MP_PWORD_NOT_ALLOWED);
|
||||
|
||||
return NativeCalls.ResetMasterPassword(sCurrentPassword, sNewPassword);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user