Panel: The server owner search bar seems to only work on the email field

Created on 18 Sep 2020  路  2Comments  路  Source: pterodactyl/panel

Background (please complete the following information):

  • Panel or Daemon: Panel
  • Version of Panel/Daemon: 1.0.0-rc.6
  • Server's OS: CentOS 8
  • Your Computer's OS & Browser: Windows 10, Edge Chromium

Describe the bug
We cannot search for a server owner using first name, last name or username, it only works using the email.
image
image
image

To Reproduce
Steps to reproduce the behavior:

  1. Create a new server
  2. In the "server owner" field, try using either the user first name or username.
  3. Does not work. It only works if you type a word contained in the email field of that user.

Expected behavior
I should be able to type the user's username or first name to find him.

Most helpful comment

Looks to be a pretty simple fix. It's just adding some additional fields into the allowedFilters array:

From: ['email']
To: ['username', 'email', 'name_first', 'name_last']

https://github.com/pterodactyl/panel/blob/develop/app/Http/Controllers/Admin/UserController.php#L188

All 2 comments

Looks to be a pretty simple fix. It's just adding some additional fields into the allowedFilters array:

From: ['email']
To: ['username', 'email', 'name_first', 'name_last']

https://github.com/pterodactyl/panel/blob/develop/app/Http/Controllers/Admin/UserController.php#L188

This is intentional for the time being and will be addressed by the admin area re-write.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

msharp19 picture msharp19  路  4Comments

JanDevDE picture JanDevDE  路  4Comments

DaneEveritt picture DaneEveritt  路  4Comments

schrej picture schrej  路  3Comments

Games4k picture Games4k  路  3Comments