From b1e639eb1ce5da5bb39d48cc772ccb7ea3d67780 Mon Sep 17 00:00:00 2001 From: Simounet Date: Mon, 27 Aug 2018 13:28:46 +0200 Subject: [PATCH 1/2] Fix missing comma into SettingsController.php --- app/Http/Controllers/SettingsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 14eced67c..8d21aee19 100644 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -31,7 +31,7 @@ class SettingsController extends Controller { $this->validate($request, [ 'name' => 'required|string|max:' . config('pixelfed.max_name_length'), - 'bio' => 'nullable|string|max:' . config('pixelfed.max_bio_length') + 'bio' => 'nullable|string|max:' . config('pixelfed.max_bio_length'), 'website' => 'nullable|url', 'email' => 'nullable|email' ]); From b7c7757cff13fc512994ba64498a7f373f79d2ec Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 27 Aug 2018 11:24:28 -0600 Subject: [PATCH 2/2] Update RegisterController --- app/Http/Controllers/Auth/RegisterController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 5217a9925..270e9a6e6 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -65,7 +65,7 @@ class RegisterController extends Controller ]; $rules = [ - 'name' => 'required|string|max' . config('pixelfed.max_name_length'), + 'name' => 'required|string|max:' . config('pixelfed.max_name_length'), 'username' => $usernameRules, 'email' => 'required|string|email|max:255|unique:users', 'password' => 'required|string|min:6|confirmed',