Can't reactive TOTP

Hi. I disabled TOTP for my account temporarily due to my app passwords randomly disappearing (App Passwords Disappearing). But now I can’t re-enable it. The option to “Activate TOTP” is in my account, but it does nothing, I can’t save the change, and I can’t re-register my phone. I’ve updated OC, disabled, uninstalled, and re-installed the two-factor app, and even truncated the oc_twofactor_totp_secrets table.

Steps to reproduce

  1. Disable TOTP for an account. Save changes.
  2. Logout, then back in without TOTP
  3. Try and Activate TOTP

Expected behaviour

TOTP is reactivated. Ideally with an option to re-register the authenticator app.

Actual behaviour

Nothing. The setting cannot be saved.

Server configuration

Operating system:
CentOS 8.3

Web server:
Apache

Database:
MySQL

PHP version:
7.2.24

ownCloud version: (see ownCloud admin page)
10.6.0.5

Updated from an older ownCloud or fresh install:
Update

Where did you install ownCloud from:
DNF repository

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.
  • calendar: 1.6.4
  • configreport: 0.2.0
  • contacts: 1.5.5
  • dav: 0.6.0
  • federatedfilesharing: 0.5.0
  • files: 1.5.2
  • files_external: 0.7.1
  • files_mediaviewer: 1.0.4
  • files_pdfviewer: 0.11.2
  • files_sharing: 0.14.0
  • files_texteditor: 2.3.0
  • files_trashbin: 0.9.1
  • files_versions: 1.3.0
  • firstrunwizard: 1.2.0
  • gallery: 16.1.1
  • market: 0.6.0
  • notifications: 0.5.2
  • templateeditor: 0.4.0
  • twofactor_totp: 0.7.1
  • updatenotification: 0.2.1
  • user_ldap: 0.15.2

Are you using external storage, if yes which one: local/smb/sftp/…
no

Are you using encryption: yes/no
no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
LDAP