ResetTempPassword() public static method

Sets the temporary password to ""
public static ResetTempPassword ( ) : void
return void
示例#1
0
 /// <summary>
 /// Sets all current accounts as not for upload, so the new account can be the upload account
 /// </summary>
 internal static void SetOtherAccountsAsNotForUpload()
 {
     try
     {
         AWBProfiles.ResetTempPassword();
         foreach (int id in GetProfileIDs())
         {
             RegistrySetValue(id, "UseForUpload", false.ToString());
         }
     }
     catch { }
 }
示例#2
0
 /// <summary>
 /// Sets all current accounts as not for upload, so the new account can be the upload account
 /// </summary>
 internal static void SetOtherAccountsAsNotForUpload()
 {
     try
     {
         AWBProfiles.ResetTempPassword();
         foreach (int id in GetProfileIDs())
         {
             Microsoft.Win32.RegistryKey key = new Computer().Registry.CurrentUser.OpenSubKey(RegKey + "\\" + id, true);
             key.SetValue("UseForUpload", false);
         }
     }
     catch { }
 }