Using a self-hosted instance of Ghost, on 5.116.1. The 2fa feature doesn’t appear to be available, and can’t see a labs toggle for it either. Checked to see if it was an alpha lab on a local development instance on Ghost, also on 5.116.1 with enableDeveloperExperiments set to true in the settings file. Still no luck.
From what I’ve looked at though, it is marked as a normal experiment flag (and not alpha) currently, unsure why it’s not appearing on either instance though, if anyone can help me out? Thanks!
EDIT: I’m unsure of the current planned/beta MFA implementation by Ghost, but it would definitely be important to see TOTPs instead of just email MFA, and potentially WebAuthn (/passkeys)?
I still see staff2fa as a beta feature. It looks like the switch was removed from the alpha features UI, but not added to the beat features UI. I’m not sure if that’s intentional.
Use this as your body for your HTTP request to the API.
Back in the network tab, under that same PUT request, look for the request headers section, and then the cookie header, which should look something like this: Quick disclaimer, please please please never share this cookie with anyone.
cookie: ghost-admin-api-session=...
For your HTTP request to the API, set the header with the key Cookie to the content of the header we discovered above (ghost-admin-api-session=...).
Use this information and make a PUT HTTP request to the endpoint https://yoursite.example/ghost/api/admin/settings/ (changing the domain to your site’s domain).
The lab should now be enabled, and you should be able to enable the two-factor authentication feature under the “Staff” section of your admin settings page.
This may or may not be the best way to go about this, but it is what worked for me, if you are unsure as to how to do this despite the instructions, it may be the best idea to err on the side of caution and wait until either the 2fa feature fully releases (presumably soon), or the switch is added to the beta labs section of the admin page.