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
410 stars 147 forks source link

[Bug]: Referrals disappear when an account is deleted #904

Open SolarHost opened 1 year ago

SolarHost commented 1 year ago

What is your request about?

When you make an account with a referral code then delete the account there is now no way to track how they got those credits making it easy to bot your referrals.

Branch

main

Solution idea

  1. Make it so when an account is deleted it keeps the username under the users info (When you click "Show" on a user and at the bottom it shows all the referred people). This way if a user has a bunch of referrals to deleted account you would know its fake.
  2. Remove the credits from the person whos referral was used. (Would remove this from being a problem but could also cause the problem of negative credits)

Controlpanel Logs

Not needed for this

Additional Info

No response

sybetjeh commented 7 months ago

I'm pretty sure the activity logs tab tracks this, and if it's not shown there it is still available to pull from the database manually