From 5671f470fcd911bd0f43137b11daf038d8642767 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sat, 18 Apr 2020 18:31:25 +0200 Subject: [PATCH 1/2] patch password lenght --- sources/patches/app-00-password_length.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sources/patches/app-00-password_length.patch diff --git a/sources/patches/app-00-password_length.patch b/sources/patches/app-00-password_length.patch new file mode 100644 index 0000000..a474105 --- /dev/null +++ b/sources/patches/app-00-password_length.patch @@ -0,0 +1,15 @@ +diff --git a/inc/core/class.dc.core.php b/inc/core/class.dc.core.php +index 53f0262..c203a84 100644 +--- a/inc/core/class.dc.core.php ++++ b/inc/core/class.dc.core.php +@@ -829,8 +829,8 @@ class dcCore + } + + if ($cur->isField('user_pwd')) { +- if (strlen($cur->user_pwd) < 6) { +- throw new Exception(__('Password must contain at least 6 characters.')); ++ if (strlen($cur->user_pwd) < 1) { ++ throw new Exception(__('Password must contain at least 1 characters.')); + } + $cur->user_pwd = $this->auth->crypt($cur->user_pwd); + } From 2abc72fe37642eff4956de12bc4b386070852492 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sat, 18 Apr 2020 23:23:46 +0200 Subject: [PATCH 2/2] Update readme --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c3f68e..8cac542 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,8 @@ How to configure this app: by an admin panel. #### Multi-users support -Are LDAP and HTTP auth supported? **Yes** +Are LDAP supported? **Yes** +Are HTTP auth supported? **No** (PR are welcome!) Can the app be used by multiple users? **Yes** #### Supported architectures @@ -39,6 +40,10 @@ Can the app be used by multiple users? **Yes** * x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/dotclear2%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/dotclear2/) * ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/dotclear2%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/dotclear2/) +## Limitations + +* Only YunoHost users can have an admin account. (PR are welcome!) + **More information on the documentation page:** https://yunohost.org/packaging_apps