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
414 stars 146 forks source link

[Bug]: Logging in to suspended account #753

Closed Theyka closed 1 year ago

Theyka commented 1 year ago

What is your request about?

Hello. First I'm not sure thats a bug it can happen because of my modifications in controlpanel.

There is how that bug works:

  1. Create two accounts, and grant administrative privileges to one of them.
  2. Log in to the admin account, navigate to the users page, and suspend the second account.
  3. After suspending the second account, click the "Login as User" button.
  4. You should be redirected to the login page and see a message indicating that the second account has been suspended.
  5. Try logging in to your admin account - you should still see the "Log back in" button.

Branch

main

Solution idea

The issue could be fixed by removing the 'Login as User' button for suspended accounts, but admins may still want to view suspended accounts to see what actions were taken.

Controlpanel Logs

No response

Additional Info

No response

GeckoBoy84 commented 1 year ago

Intended to be able to see more info about the users activity.