FuseCP / SolidCP

Multi Server Control Panel for Windows based on C#
https://solidcp.com
Other
84 stars 74 forks source link

MFA activation on Peer accounts not working #133

Open posixx opened 1 year ago

posixx commented 1 year ago

Activation of the MFA option on peer accounts is failing. The generation of the PinSecret and activating the MFA is not working when selecting the checkbox on the Peer account page. It simply does not update the user table.

When generating the PinSecret myself and set MfaMode to 1 in the usertable it works as expected; user receives email and can activate QR on device.

--- Want to back this issue? **[Post a bounty on it!](https://app.bountysource.com/issues/116476902-mfa-activation-on-peer-accounts-not-working?utm_campaign=plugin&utm_content=tracker%2F150994120&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://app.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F150994120&utm_medium=issues&utm_source=github).
FuseCP-TRobinson commented 1 year ago

I have tried this on a peer account and it worked fine. Are you activating it as the peer or the main account?

posixx commented 1 year ago

I am enabling MFA on a peer account when logged in with serveradmin. After saving and opening the account details page again the MFA selectionbox is empty.