Browse Source

Fix “Can't update account settings without setting a bio”

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
Marcin Mikołajczak 7 years ago
parent
commit
13c0e33490
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/SettingsController.php

+ 1 - 1
app/Http/Controllers/SettingsController.php

@@ -22,7 +22,7 @@ class SettingsController extends Controller
     {
     {
       $this->validate($request, [
       $this->validate($request, [
         'name'  => 'required|string|max:30',
         'name'  => 'required|string|max:30',
-        'bio'   => 'string|max:125'
+        'bio'   => 'nullable|string|max:125'
       ]);
       ]);
 
 
       $changes = false;
       $changes = false;