Missing username and server name parameters in error text in the Authentication window.

cusax-fix
Yana Stamcheva 18 years ago
parent bb997bd88a
commit 07ec521947

@ -59,12 +59,16 @@ public UserCredentials obtainCredentials(
if (reasonCode == WRONG_PASSWORD)
{
errorMessage
= Messages.getI18NString("authenticationFailed").getText();
= Messages.getI18NString("authenticationFailed",
new String[]{ userCredentials.getUserName(),
realm}).getText();
}
else if (reasonCode == WRONG_USERNAME)
{
errorMessage
= Messages.getI18NString("authenticationFailed").getText();
= Messages.getI18NString("authenticationFailed",
new String[]{ userCredentials.getUserName(),
realm}).getText();
}
AuthenticationWindow loginWindow = null;

Loading…
Cancel
Save