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

16 lines
627 B
Diff
Raw Permalink Normal View History

2020-04-18 18:31:25 +02:00
diff --git a/inc/core/class.dc.core.php b/inc/core/class.dc.core.php
2022-08-31 14:30:16 +02:00
index 317434b..2d1e6f8 100644
2020-04-18 18:31:25 +02:00
--- a/inc/core/class.dc.core.php
+++ b/inc/core/class.dc.core.php
2022-08-31 14:30:16 +02:00
@@ -1056,8 +1056,8 @@ final class dcCore
2020-04-18 18:31:25 +02:00
}
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);
}