From 82b7631d93ccce8c87a956c7c2535973efa010aa Mon Sep 17 00:00:00 2001 From: srosse <stephane.rosse@frentix.com> Date: Tue, 17 Mar 2020 13:58:45 +0100 Subject: [PATCH] no-jira: don't limit the length of adobe connect account user name --- .../ui/AdobeConnectConfigurationController.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 16803eacc4d..cae4a75f6e3 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(); -- GitLab