pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.81k stars 1.74k forks source link

Cannot have a name below 5 characters in registration #4086

Closed TheoCGaming closed 2 years ago

TheoCGaming commented 2 years ago

Current Behavior

If I input "Ken" for example into the First Name field, it shows an error saying that the first name must be 5 characters or more.

Expected Behavior

The name "Ken" is accepted as the first name.

Steps to Reproduce

  1. Attempt to register.
  2. Input all needed info, but with a 3-letter first name (or last name). May also apply with other languages.
  3. The error shows.

Extra Notes: This may show as "Working as Intended", but I can't register because of it. If it isn't fixed, I'll never be able to register with my real name or I'll only be able to register through panel invites.

Panel Version

1.7.0

Wings Version

1.6.1

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs

No response

Is there an existing issue for this?

notAreYouScared commented 2 years ago

I'm not able to duplicate this issue...

Are you running a theme? Or any plugins?

Boy132 commented 2 years ago

Attempt to register.

There is no way to register. An admin has to create an account for a user. So you probably use a third party mod?

DaneEveritt commented 2 years ago

There is no registration logic in this software.

FoksVHox commented 2 years ago

@TheoCGaming @DaneEveritt Actually there is in https://github.com/pterodactyl/panel/blob/develop/app/Http/Controllers/Admin/UserController.php#L146-L152. However, there is no validation rules, that would control the length of the first name.

notAreYouScared commented 2 years ago

That creates a user....

This doesn't allow the user to register for themselves, an admin has to create an account...

There are also validation rules. See below

https://github.com/pterodactyl/panel/blob/b051718afe2cc69a7d395bfe27a628d7c36fa289/app/Models/User.php#L179

TheoCGaming commented 2 years ago

asking if the owner uses plugins, one second.

TheoCGaming commented 2 years ago

ah, "register addon" very specific.