Browse Source

* Removed trim from username check for userlist

Visman 6 năm trước cách đây
mục cha
commit
6ea4783cb9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Models/Pages/Userlist.php

+ 1 - 1
app/Models/Pages/Userlist.php

@@ -47,7 +47,7 @@ class Userlist extends Page
                 'sort'  => $prefix . 'string|in:username,registered' . ($this->user->showPostCount ? ',num_posts' : ''),
                 'sort'  => $prefix . 'string|in:username,registered' . ($this->user->showPostCount ? ',num_posts' : ''),
                 'dir'   => $prefix . 'string|in:ASC,DESC',
                 'dir'   => $prefix . 'string|in:ASC,DESC',
                 'group' => $prefix . 'string|in:' . \implode(',', \array_keys($this->groupList)),
                 'group' => $prefix . 'string|in:' . \implode(',', \array_keys($this->groupList)),
-                'name'  => $prefix . 'string:trim|min:1|max:25' . ($this->user->searchUsers ? '' : '|in:*'),
+                'name'  => $prefix . 'string|min:1|max:25' . ($this->user->searchUsers ? '' : '|in:*'),
             ]);
             ]);
 
 
         $error = true;
         $error = true;