There are a few places to enable 2fa, and I’m not sure that they’re linked in the backend. Perhaps some have been confused? E.g. Admin website 2fa and nextcloud 2fa?
Anyway, to disable 2fa for a nextcloud user via cli use:
cd /usr/local/lib/owncloud
sudo -u www-data php occ twofactorauth:disable <username>
Not sure if this will cause issues with the other 2fa uses of mailinabox, so use with caution.
Just using occ (without anything after that) will get you some short explanation on available commands.
Thank you so much! This pointed me in the right direction and I got back in. When I entered that command I got the error: Not enough arguments (missing: “provider_id”).
However some quick searching I found that this worked: