alexandregz / twofactor_gauthenticator

This RoundCube plugin adds the 2-step verification(OTP) to the login proccess
MIT License
221 stars 78 forks source link

I cannot see "2steps Google verification" in the settings task #196

Open jobst opened 4 months ago

jobst commented 4 months ago

I am new to Roundcube, I got it installed quickly, can read/delete/send emails, can change the settings.

I have full SSH access, so no problem doing anything - I have set the requested settings.

I am afraid I cannot see the "2steps Google verification" menu item in the Settings task.

I have checked in the Developer tools for console errors or css/js/code loading issue - not one problem.

I have also checked all error logs (roundcube/php/etc) - not one single problem.

I have set this $rcmail_config['users_allowed_2FA'] = array('*@*','MYUSERNAME','MYUSERNAME@MYDOMAIN'); where MYUSERNAME and MYDOMAIN are my details but nothing comes up.

My environment: PHP 8.1.29 Apache 2.4.6 Roundcube Webmail 1.6.7

Other than your plugin I have no other plugin enabled.

How can I debug/fix this?

jobst commented 4 months ago

Also when I set $rcmail_config['force_enrollment_users'] = true;

I get a dialog box like this: roundcube-bug

BlossomBlizzard commented 2 days ago

I get the same thing, though when I set: $rcmail_config['force_enrollment_users'] = true;

I get:

PHP Error: No handler found for action plugin.twofactor_gauthenticator in /roundcubemail/program/lib/Roundcube/rcube_plugin_api.php on line 581 (GET /?_task=settings&_action=plugin.twof
actor_gauthenticator)

I tried various whitelist and users_allowed combinations, but it seems that the issue is not with the config but with the plugin itself, hopefully this error helps.

Worth noting is that I run Roundcube in a chroot environment, that I tried installing the plugin both via composer and manually and got the same result and that the error occurs regardless of other plugins.

My environment: PHP 8.2.23 OpenBSD 7.5 httpd Roundcube Webmail 1.6.9