From d76fc7b583f5cc0ca21942111193b6a68e299bcb Mon Sep 17 00:00:00 2001 From: Nils VAN ZUIJLEN Date: Tue, 25 May 2021 15:53:10 +0200 Subject: [PATCH] Define minimum username length to 1 char To allow for all LDAP users Fixes #20 Signed-off-by: Nils VAN ZUIJLEN --- check_process | 4 ++-- conf/common.php | 7 ++++++- manifest.json | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/check_process b/check_process index 44316c4..1a2afd0 100644 --- a/check_process +++ b/check_process @@ -12,7 +12,7 @@ setup_private=1 setup_public=1 upgrade=1 - upgrade=1 from_commit=6b47f5e5d81ac3239709d581b25a2fa331226843 + upgrade=1 from_commit=83500d6e866539d56a0aed6f288a8a8ce02a674b backup_restore=1 multi_instance=1 port_already_use=0 @@ -21,7 +21,7 @@ Email= Notification=none ;;; Upgrade options - ; commit=6b47f5e5d81ac3239709d581b25a2fa331226843 + ; commit=83500d6e866539d56a0aed6f288a8a8ce02a674b name=Name and date of the commit. manifest_arg=domain=DOMAIN&path=PATH&admin=USER&is_public=1& diff --git a/conf/common.php b/conf/common.php index 2068012..aff4032 100644 --- a/conf/common.php +++ b/conf/common.php @@ -2,10 +2,15 @@ return [ 'components' => [ - 'db' => [ + 'db' => [ 'dsn' => 'mysql:host=localhost;dbname=__DB_NAME__', 'username' => '__DB_USER__', 'password' => '__DB_PWD__', ], + ], + 'modules' => [ + 'user' => [ + 'minimumUsernameLength' => 1 + ] ] ]; diff --git a/manifest.json b/manifest.json index 3e87e43..37b15a0 100644 --- a/manifest.json +++ b/manifest.json @@ -12,7 +12,7 @@ "name": "Nils Van Zuijlen", "url": "https://github.com/nils-van-zuijlen" }, - "version": "1.8.2~ynh1", + "version": "1.8.2~ynh2", "requirements": { "yunohost": ">= 4.1.7" },