pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.66k stars 1.68k forks source link

Bring `uses_totp` to the account object in the client api #5124

Open TekExplorer opened 3 months ago

TekExplorer commented 3 months ago

Is there an existing feature request for this?

Describe the feature you would like to see.

currently, the client api returns the following data about the user

Describe the solution you'd like.

Include the use_totp field in the user object returned by the api. _and maybe name it properly as uses_totp_

Additional context to this request.

As the developer of featherdactyl, an app for pterodactyl, its impossible for me to tell if a user has totp enabled or not, so i cannot properly show the correct dialog to toggle it with. I simply do not know which to show - enable, or disable.

I'm already stuck with web scraping for the app name, but at least that works. This, as its blocked by session login, simply doesnt.

TekExplorer commented 3 months ago

Note: pelican has consolidated both subuser and account, and included all of the missing fields in this pr: https://github.com/pelican-dev/panel/pull/423

I'd suggest doing the same thing

Boy132 commented 3 months ago

Note: pelican has consolidated both subuser and account, and included all of the missing fields in this pr: pelican-dev/panel#423

I'd suggest doing the same thing

Feel free to port these changes over to Pterodactyl if you want to.