瀏覽代碼

Merge pull request #413 from pixelfed/frontend-ui-refactor

Frontend ui refactor
daniel 6 年之前
父節點
當前提交
db16a391cc
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/Http/Controllers/Auth/RegisterController.php
  2. 1 1
      app/Http/Controllers/SettingsController.php

+ 1 - 1
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',

+ 1 - 1
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'
       ]);