Skip to content
Snippets Groups Projects
Commit 82b7631d authored by srosse's avatar srosse
Browse files

no-jira: don't limit the length of adobe connect account user name

parent 39ea4a6f
No related branches found
No related tags found
No related merge requests found
......@@ -137,13 +137,13 @@ public class AdobeConnectConfigurationController extends FormBasicController {
urlEl.setDisplaySize(60);
urlEl.setExampleKey("option.baseurl.example", null);
String login = adobeConnectModule.getAdminLogin();
loginEl = uifactory.addTextElement("aconnect-login", "option.adminlogin", 32, login, formLayout);
loginEl = uifactory.addTextElement("aconnect-login", "option.adminlogin", 255, login, formLayout);
String credential = adobeConnectModule.getAdminPassword();
if(StringHelper.containsNonWhitespace(credential)) {
replacedValue = credential;
credential = PLACEHOLDER;
}
passwordEl = uifactory.addPasswordElement("aconnect-password", "option.adminpassword", 32, credential, formLayout);
passwordEl = uifactory.addPasswordElement("aconnect-password", "option.adminpassword", 255, credential, formLayout);
passwordEl.setAutocomplete("new-password");
String accountId = adobeConnectModule.getAccountId();
......@@ -254,6 +254,9 @@ public class AdobeConnectConfigurationController extends FormBasicController {
if(!StringHelper.containsNonWhitespace(login)) {
loginEl.setErrorKey("form.legende.mandatory", null);
allOk &= false;
} else if(login.length() >= 255) {
loginEl.setErrorKey("form.error.toolong", new String[] { "255" });
allOk &= false;
}
String password = passwordEl.getValue();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment