mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
patch password lenght
This commit is contained in:
parent
b28f72ea9d
commit
5671f470fc
1 changed files with 15 additions and 0 deletions
15
sources/patches/app-00-password_length.patch
Normal file
15
sources/patches/app-00-password_length.patch
Normal 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);
|
||||
}
|
Loading…
Reference in a new issue