diff --git a/src/main/java/org/olat/modules/adobeconnect/ui/AdobeConnectConfigurationController.java b/src/main/java/org/olat/modules/adobeconnect/ui/AdobeConnectConfigurationController.java index 16803eacc4dc9470ee6312eac1d0d5ce4adcf23f..cae4a75f6e3512cde5e52f9f84dfe7fa78bffc2a 100644 --- a/src/main/java/org/olat/modules/adobeconnect/ui/AdobeConnectConfigurationController.java +++ b/src/main/java/org/olat/modules/adobeconnect/ui/AdobeConnectConfigurationController.java @@ -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();