Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username validation - Script crashes if invalid #422

Open
bastian-schur opened this issue Jul 27, 2023 · 1 comment
Open

Username validation - Script crashes if invalid #422

bastian-schur opened this issue Jul 27, 2023 · 1 comment
Labels
new feature Introduces a new feature

Comments

@bastian-schur
Copy link

bastian-schur commented Jul 27, 2023

Describe the bug
The setup wizard asks for my username without giving any information about the validation. I used a "!" symbol in my username and the script crahes on Seeder:

In Model.php line 53:

Could not save Pterodactyl\Models\User[]: failed to validate data: {"username":["The username must start and end wi
th alpha-numeric characters and\n contain only letters, numbers, dashes, underscores, and periods."]
}

To Reproduce
Steps to reproduce the behaviour:

Use a username with an invalid character like "!"

Expected behaviour
A username validation would be geat

Screenshots
If applicable, add screenshots to help explain your problem.

OS (please complete the following information):
Ubuntu 22.04

@vilhelmprytz
Copy link
Member

This is very true. We currently perform no validation on usernames. Thanks for reporting.

@vilhelmprytz vilhelmprytz added the new feature Introduces a new feature label Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Introduces a new feature
Projects
None yet
Development

No branches or pull requests

2 participants