10
Disabling 2FA on lemmy DB
(aussie.zone)
Aww no gifs in jerboa
If you wanted to do it in one query I think you could do something like
UPDATE local_user AS u
SET u.totp_2fa_url = null,
u.totp_2fa_secret = null
FROM person AS p
WHERE p.id = u.person_id
AND p.local
AND p.name = 'guineapig';
I assume the p.local
is optional, too, because the id match against the local_user
table will presumably limit it to only local users. 🤷
Thanks, good to know.
Thanks so much for this! It saved me, as I got locked out by accidentally disabling 2fa and then re-enabling it from account settings, which seemed to nuke the original settings.
Speaking of which, it no longer offers me a setup link as once before. So, I cannot set up 2fa again. Unless you might know a way? Thanks
Discussion about the aussie.zone instance itself