owncloud / twofactor_totp

🔑 Second factor TOTP (Google Authenticator) provider for ownCloud
GNU Affero General Public License v3.0
9 stars 9 forks source link

TOTP cannot be re-enabled #224

Closed BentiGorlich closed 2 years ago

BentiGorlich commented 3 years ago

Hello,

I disabled totp for my owncloud account because I didn't have the qr code anymore and only had it on my tablet, but not on my phone. If I want to re-enable it, a qr code does not show up and the request returns a 500 internal server error. So I can't re-enable it on my server.

I don't know if it is a error specificaly on my owncloud instance or if it is a bug, but I hope you can eigher help me fix my problem or solve this bug if it is one.

realUbie commented 2 years ago

Can confirm, nothing happens when you tick the "Activate TOTP" checkbox

realUbie commented 2 years ago

I couldn't find any helpful logs, ended up reinstalling my ownCloud instance, which solved this issue

dillon-sykes commented 2 years ago

For anyone having this issue, the php-imagick PHP extension needs to be installed. I found this was missing from the ownCloud server, the "2-Factor Authentication" app in the marketplace relies on this extension to work correctly. After installing this PHP extension and restarting apache, QR codes are now displayed and there are no errors in the console.

BentiGorlich commented 2 years ago

I can confirm that. Installed the extension and it works agains