2fa activeted but not setup. Can I deactivate it?

hey, I made a mistake. I enforced 2FA and forgot to setup it up on my account before logging out.
Now I can’t login:

 Two-factor authentication is enforced but has not been configured on your account. Contact your admin for assistance. 

Can I disable this through occ? Or is there another quick fix?

You need to use the occ tool to disable it: occ twofactorauth:disable ...

2 Likes

I get:

Not enough arguments (missing: “provider_id”).
twofactorauth:disable [--output [OUTPUT]] [--] <uid> <provide-id>

This is to disable the enforced use of 2FA

occ twofactorauth:enforce --off

I hope this solves your problem.


Much and good luck,
ernolf

2 Likes