File tree 6 files changed +2
-18
lines changed
6 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 98
98
'notifications_tab ' => 'Benachrichtigungen ' ,
99
99
'allow_registration ' => 'Benutzerregistrierung erlauben ' ,
100
100
'allow_registration_comment ' => 'Falls dies deaktivert ist, können Benutzer nur von Administratoren erstellt werden. ' ,
101
- 'min_password_length ' => 'Minimale Passwortlänge ' ,
102
- 'min_password_length_comment ' => 'Die minimale Passwortlänge für Benutzerpasswörter. ' ,
103
101
'activate_mode ' => 'Aktivierungsmodus ' ,
104
102
'activate_mode_comment ' => 'Wählen Sie aus, wie ein Benutzer aktiviert werden soll. ' ,
105
103
'activate_mode_auto ' => 'Automatisch ' ,
Original file line number Diff line number Diff line change 75
75
'notifications_tab ' => 'Notifications ' ,
76
76
'allow_registration ' => 'Allow user registration ' ,
77
77
'allow_registration_comment ' => 'If this is disabled users can only be created by administrators. ' ,
78
- 'min_password_length ' => 'Minimum password length ' ,
79
- 'min_password_length_comment ' => 'The minimum length of characters required for user passwords. ' ,
80
78
'activate_mode ' => 'Activation mode ' ,
81
79
'activate_mode_comment ' => 'Select how a user account should be activated. ' ,
82
80
'activate_mode_auto ' => 'Automatic ' ,
Original file line number Diff line number Diff line change 79
79
'notifications_tab ' => 'Оповещения ' ,
80
80
'allow_registration ' => 'Разрешить регистрацию ' ,
81
81
'allow_registration_comment ' => 'Если эта опция выключена, только администраторы смогут регистрировать пользователей. ' ,
82
- 'min_password_length ' => 'Минимальная длина пароля ' ,
83
- 'min_password_length_comment ' => 'Минимальное количество символов для пароля пользователя. ' ,
84
82
'activate_mode ' => 'Активация ' ,
85
83
'activate_mode_comment ' => 'Активация пользователя. ' ,
86
84
'activate_mode_auto ' => 'Автоматическая ' ,
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ class Settings extends Model
25
25
const REMEMBER_ALWAYS = 'always ' ;
26
26
const REMEMBER_NEVER = 'never ' ;
27
27
const REMEMBER_ASK = 'ask ' ;
28
- const MIN_PASSWORD_LENGTH_DEFAULT = 8 ;
29
28
30
29
public function initSettingsData ()
31
30
{
@@ -37,7 +36,6 @@ public function initSettingsData()
37
36
$ this ->login_attribute = self ::LOGIN_EMAIL ;
38
37
$ this ->update_requires_password = false ;
39
38
$ this ->remember_login = self ::REMEMBER_ALWAYS ;
40
- $ this ->min_password_length = self ::MIN_PASSWORD_LENGTH_DEFAULT ;
41
39
$ this ->use_register_throttle = true ;
42
40
}
43
41
Original file line number Diff line number Diff line change 4
4
use Auth ;
5
5
use Mail ;
6
6
use Event ;
7
+ use Config ;
7
8
use Carbon \Carbon ;
8
9
use October \Rain \Auth \Models \User as UserBase ;
9
10
use RainLab \User \Models \Settings as UserSettings ;
@@ -201,7 +202,7 @@ public function getLoginName()
201
202
*/
202
203
public static function getMinPasswordLength ()
203
204
{
204
- return ( int ) UserSettings ::get ('min_password_length ' , UserSettings:: MIN_PASSWORD_LENGTH_DEFAULT );
205
+ return Config ::get ('min_password_length ' , 8 );
205
206
}
206
207
207
208
//
Original file line number Diff line number Diff line change 52
52
type : switch
53
53
tab : rainlab.user::lang.settings.registration_tab
54
54
55
- # Minimum password length
56
- min_password_length :
57
- span : left
58
- commentAbove : rainlab.user::lang.settings.min_password_length_comment
59
- label : rainlab.user::lang.settings.min_password_length
60
- type : number
61
- tab : rainlab.user::lang.settings.registration_tab
62
- min : 1
63
-
64
55
# Require Activation
65
56
require_activation :
66
57
span : left
You can’t perform that action at this time.
0 commit comments