Ctrlpanel-gg / panel

CtrlPanel offers an easy-to-use and free billing solution for all starting and experienced hosting providers that seamlessly integrates with the Pterodactyl panel.
https://ctrlpanel.gg/
MIT License
405 stars 140 forks source link

[Bug]: Third Party Identifier may be taken already #769

Closed IceToast closed 1 year ago

IceToast commented 1 year ago

What is your request about?

When creating an account using controlpanel while there is an existing userbase on pterodactyl it may happen, that third party identifier used to create a user on pterodactyl already exists.

The third party identifier used in this case is the internal user.id of the controlpanel user, that is an auto increment int. The problem should already be clear.

Branch

main

Solution idea

Change the user.id type to not be an auto incremented int, but a uuid or cuid for example.

Controlpanel Logs

No response

Additional Info

No response