1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dotclear2_ynh.git synced 2024-09-03 18:26:29 +02:00

Merge pull request #23 from YunoHost-Apps/testing

patch password lenght
This commit is contained in:
Kayou 2020-04-18 23:24:17 +02:00 committed by GitHub
commit bcb8ab134a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

View file

@ -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

View file

@ -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);
}