add condition

This commit is contained in:
ilya khlevnoy 2024-08-07 00:19:53 +03:00
parent 2913b3c272
commit 6124ca4a7f

View File

@ -286,7 +286,7 @@ public class AccountCreationWizard extends JPanel {
message = Res.getString("message.already.exists");
usernameField.setText("");
usernameField.requestFocus();
} else if (condition == StanzaError.Condition.not_allowed) {
} else if (condition == StanzaError.Condition.not_allowed || condition == StanzaError.Condition.forbidden) {
message = Res.getString("message.create.account.not.allowed");
} else {
message = Res.getString("message.create.account");