Merge pull request #2398 from delthas/feature-password-length

Make the minimum user password length configurable
pull/2449/head
daniel 2020-11-21 20:10:34 -07:00 zatwierdzone przez GitHub
commit 45458bd542
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -115,7 +115,7 @@ class RegisterController extends Controller
'name' => 'nullable|string|max:'.config('pixelfed.max_name_length'),
'username' => $usernameRules,
'email' => $emailRules,
'password' => 'required|string|min:12|confirmed',
'password' => 'required|string|min:'.config('pixelfed.min_password_length').'|confirmed',
];
return Validator::make($data, $rules);

Wyświetl plik

@ -119,6 +119,16 @@ return [
*/
'max_name_length' => env('MAX_NAME_LENGTH', 30),
/*
|--------------------------------------------------------------------------
| Password minimum length limit
|--------------------------------------------------------------------------
|
| Change the minimum length limit for user passwords.
|
*/
'min_password_length' => env('MIN_PASSWORD_LENGTH', 12),
/*
|--------------------------------------------------------------------------
| Album size limit