I’m running NextCloud on TrueNAS Scale as an app. When I tried to set up OAuth2, I checked to enable it for all users and my login session was interupted prior to completing the setup.
When I returned to the GUI and attempt to log in, I get this lockout message:
I read a couple similar posts involving using these commands, and see, generally. Running these commands in the shell did not solve my problem, and the shell claimed that 2FA was disabled for user admin. This prior post is more about helping a user who lost their OAuth app access get back into their account, but does not help when you lock yourself out prior to completing the OAuth configuration.
This led to realize that TrueNAS SCALE apps do not have a way to backup unless you install them through Portainer or using the custom app setup, with discussions on this occuring on the truenas forum here, but the support I humbly request from the nextcloud community is:
How do I unlock my admin account if I enabled but did not configure OAuth2.
Suggestion: NextCloud should prevent OAuth2 lockouts until it’s fully setup and verified as working by forcing entry of the first code prior to activating lockout.