浏览代码

Update RegisterController

Daniel Supernault 6 年之前
父节点
当前提交
b7c7757cff
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/Auth/RegisterController.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',