panel icon indicating copy to clipboard operation
panel copied to clipboard

[Bug]: Added users to Pterodactyl then cannot create an account on controlpanel.

Open SneakyHub opened this issue 1 year ago • 5 comments
trafficstars

What is your request about?

When you create an account on controlpanel, it will create an account in both databases Pterodactyl and Controlpanel. That's all good but if a previous user who created an account on the controlpanel, then goes ahead creates a server then invites their friend or whoever via the users tab in pterodactyl it will then create a user with their email/username within the pterodactyl database. The issue here is if that friend or whoever was to create their own controlpanel account it will say the user already exists in the database even though it doesn't exist in the controlpanel database, it exists in the pterodactyl database. Therefore making it impossible for a user to then use that email for their own personal controlpanel account.

Branch

main

Solution idea

Have a better way to sync pterodactyl users to the controlpanel. Either have a cron that syncs the data between the two databases properly or have a way for that user to sync their pterodactyl account to a dashboard account or have it so when a new user is added to pterodactyl it then uses those same details in the controlpanel database. It can automatically sync once the new user has been added to pterodactyls database so perhaps making it check for new users, or however you would like to go about it.

Ctrlpanel Logs

no logs. just a simple friendly error code. user already exists.

Additional Info

Latest version of controlpanel and pterodactyl as of 22/08/2024. (no modified code, no themes, no addons, pterodactyl and controlpanel are stock) This issue affects all controlpanel versions.

SneakyHub avatar Jun 22 '24 14:06 SneakyHub

This was posted a week ago and has no response. Is there any update with this? Any progress? Or at least can you confirm this is an issue. Again it's been a week since I've posted this and I haven't heard anything. Can you give me an update please. Thanks.

SneakyHub avatar Jul 01 '24 20:07 SneakyHub

Hi,

I tagged this issue as high priority, but it could potentially be a medium priority – I'm not entirely sure.

As you know, this is an open source project, and we're all volunteers doing our best. Currently, this issue isn't at the top of our priority list, and it hasn't been fully confirmed or reviewed yet.

Our focus right now is on resolving other "blocking" issues to get version 0.10 released. Wen we can, we'll review this issue and decide whether to add it to our to-do list.

In the meantime, you're welcome to submit a pull request to fix the issue if you'd like!

S0ly avatar Jul 01 '24 21:07 S0ly

its an issue that could be regarded before the release of 0.10 eventhough i would label it as medium priority as this is kinda an edge case

1day2die avatar Jul 01 '24 22:07 1day2die

This could work, we would just have to adjust the cronjob to also sync to Pterodactyl. However the main issue is how the passwords would sync between platforms (haven't fully taken a look yet so I'm unsure if it's possible or not)

lezetho avatar Nov 02 '24 02:11 lezetho

This could work, we would just have to adjust the cronjob to also sync to Pterodactyl. However the main issue is how the passwords would sync between platforms (haven't fully taken a look yet so I'm unsure if it's possible or not)

both systems use the same hashing method, theoretically, you can just send the hashed password from ctrlpanel to ptero via the API. this is also done during the installation process

1day2die avatar Nov 18 '24 09:11 1day2die

This could work, we would just have to adjust the cronjob to also sync to Pterodactyl. However the main issue is how the passwords would sync between platforms (haven't fully taken a look yet so I'm unsure if it's possible or not)

both systems use the same hashing method, theoretically, you can just send the hashed password from ctrlpanel to ptero via the API. this is also done during the installation process

About this, I dont seem to find the part that sends the hashed password to the PteroAPI as it requires plain text passwords, not hashed ones. The best approach to this without modifying pterodactyl itself seems to be updating the user's pterodactyl account password to match the ctrlpanel password.

LakshmiBhaskarPVL avatar Nov 01 '25 14:11 LakshmiBhaskarPVL