GTB: - low level tools: messages extended

This commit is contained in:
Thomas Wiedebusch
2025-10-21 14:21:04 +02:00
parent bf797117bd
commit f5036dcd67
+13 -6
View File
@@ -273,7 +273,7 @@ namespace Xylem.Common.Ui.GenesisToolBox
/// <remarks date="2025-Oct-17" author="Thomas Wiedebusch">
/// - Actions on pwdContainer error.
/// </remarks>
/// <remarks date="2025-Oct-20" author="Thomas Wiedebusch">
/// <remarks date="2025-Oct-20..21" author="Thomas Wiedebusch">
/// - Password checks extended.
/// </remarks>
private void Connect()
@@ -335,9 +335,10 @@ namespace Xylem.Common.Ui.GenesisToolBox
{
LowLevelActionControl(false);
if (!_currentGenesis.UseOfflinePasswords)
LogErrorText("ERROR: Login failed and passwords cannot be acquired from the database!");
LogErrorText($"ERROR: Login to PcbId:{_currentGenesis.PcbId} failed and passwords cannot be acquired " +
"from the database!");
else
LogErrorText("ERROR: Login with 'offline password' failed!");
LogErrorText($"ERROR: Login with 'offline password' to PcbId:{_currentGenesis.PcbId} failed!");
LogText(StrSeparator);
return;
@@ -417,7 +418,7 @@ namespace Xylem.Common.Ui.GenesisToolBox
}
else
{
// CASE 7: - The login succeeded but the password file request from database failed and offlie pwd
// CASE 7: - The login succeeded but the password file request from database failed and offline pwd
LogText("Successfully logged in with the 'offline password'\n" +
"Passwords cannot be acquired from the database and therefore not compared");
}
@@ -432,7 +433,7 @@ namespace Xylem.Common.Ui.GenesisToolBox
sb.AppendLine(@"Passwords cannot be acquired from the database [E0]!");
}
// As the initial login wasn't successfully, try the acquired combinations from the database passwords
else if (!_currentGenesis.IsLoggedOn)
else if (!_currentGenesis.IsLoggedOn && !_currentGenesis.UseOfflinePasswords)
{
// This is needed from meter as an unsuccessful login requires a delay for the next trial
Thread.Sleep(2000);
@@ -506,7 +507,8 @@ namespace Xylem.Common.Ui.GenesisToolBox
}
else
{
sb.AppendLine($"{item.ID} is neither the 'Lvl8 password' nor the 'SkeletonKey' [E3]");
sb.AppendLine(
$"{item.ID} is neither the 'Lvl8 password' nor the 'SkeletonKey' [E3]");
}
}
}
@@ -519,6 +521,11 @@ namespace Xylem.Common.Ui.GenesisToolBox
if (!_currentGenesis.IsLoggedOn)
{
if (!_currentGenesis.UseOfflinePasswords)
LogErrorText($"ERROR: Login to PcbId:{_currentGenesis.PcbId} failed with 'production password', " +
"'Lvl8 password' and 'SkeletonKey'!");
else
LogErrorText($"ERROR: Login to PcbId:{_currentGenesis.PcbId} with 'offline password' failed!");
LogText(StrSeparator);
return;
}