Fixed bug where we could not turn custom password encryption off

This commit is contained in:
David Sparer
2016-10-13 12:25:45 -06:00
parent 1592a448f3
commit c530b3f8b4
2 changed files with 6 additions and 1 deletions

View File

@@ -36,7 +36,8 @@ namespace mRemoteNG.App
public static RemoteConnectionsSyncronizer RemoteConnectionsSyncronizer { get; set; }
public static DateTime LastSqlUpdate { get; set; }
public static ArrayList ExternalTools { get; set; } = new ArrayList();
public static SecureString EncryptionKey { get; set; } = "mR3m".ConvertToSecureString();
public static SecureString DefaultEncryptionKey { get; } = "mR3m".ConvertToSecureString();
public static SecureString EncryptionKey { get; set; } = DefaultEncryptionKey;
public static ConnectionTreeModel ConnectionTreeModel
{
get { return Windows.TreeForm.ConnectionTreeModel; }

View File

@@ -779,6 +779,10 @@ namespace mRemoteNG.UI.Window
else
rootInfo.PasswordString = password.ConvertToUnsecureString();
}
else
{
Runtime.EncryptionKey = Runtime.DefaultEncryptionKey;
}
break;
case "Name":
break;