Merge pull request #1273 from MihaelaStoica/CA-148427

CA-148427: XC logs get populated with wrong message even when the use…
This commit is contained in:
mcintyre94 2016-11-11 15:30:58 +00:00 committed by GitHub
commit 081a6302d3

View File

@ -100,9 +100,12 @@ namespace XenAdmin.Dialogs.OptionsPages
Properties.Settings.Default.RequirePass = true;
// set password
Program.MasterPassword = TemporaryMasterPassword;
new ActionBase(Messages.CHANGED_MASTER_PASSWORD,
Messages.CHANGED_MASTER_PASSWORD_LONG, false, true);
if (Program.MasterPassword != TemporaryMasterPassword)
{
Program.MasterPassword = TemporaryMasterPassword;
new ActionBase(Messages.CHANGED_MASTER_PASSWORD,
Messages.CHANGED_MASTER_PASSWORD_LONG, false, true);
}
}
if (SaveAllAfter)
Settings.SaveServerList();