Explorar o código

Merge pull request #114 from m4sk1n/settings-bio-fix

Fix “Can't update account settings without setting a bio”
daniel %!s(int64=7) %!d(string=hai) anos
pai
achega
dcd6edb154
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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, [
         'name'  => 'required|string|max:30',
-        'bio'   => 'string|max:125'
+        'bio'   => 'nullable|string|max:125'
       ]);
 
       $changes = false;