alexandregz / twofactor_gauthenticator

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

Roundcube 1.6 Support? #170

Closed SKB-CGN closed 2 months ago

SKB-CGN commented 1 year ago

Hi, I just upgraded to 1.6 but the plugin is not displayed anymore.

Is there a way to activate it again?

Thanks!

umsmin commented 1 year ago

I removed it and copied it again into the plugins folder. I only had problems to scan the QR-Code bit I added it manually and it works.

schickel007 commented 1 year ago

I activated the plugin with roundcube 1.6.1 but it does not appear and it not working. try new installation of rc but also this plugin don't want to work. is there really a support for rc 1.6?

gabrielt commented 1 year ago

Yes, it works with RC 1.6 series. The issue is that the default config.inc.php comes with the author's email addresses in the $rcmail_config['users_allowed_2FA'] variable. Since our email address is different, the plugin isn't displayed inside RC.

To fix this, edit /plugins/twofactor_gauthenticator/config.inc.php and change this setting to: $rcmail_config['users_allowed_2FA'] = true;

schickel007 commented 1 year ago

With this setting users_allowed_2FA=true plugin still not appear in the setting.

Somehow the plugin is also not listed as "installed" even it is listed in the plugin section in the main-config of roundcube:

// List of active plugins (in plugins/ directory)

$config['plugins'] = [ 'jqueryui', 'markasjunk', 'twofactor_gauthenticator', ];

image

No clue what's missing...

SKB-CGN commented 1 year ago

Your twofactor folder has the permissions chmod 775 and belongs to your www user?

If not, please reinstall the plugin.

Further, try to edit the file:

To fix this, edit /plugins/twofactor_gauthenticator/config.inc.php and change this setting to: $rcmail_config['users_allowed_2FA'] = true;

Set an array here, with the user email address. $rcmail_config['users_allowed_2FA'] = ['my_allowed_user@mydomain.de', 'another_one@domain.de'];

schickel007 commented 1 year ago

Test it in the past and now also - nothing changed. Also permissions and ownership from the plugin-directory is as requested. Also different variations of "users_allowed_2FA". I also try with fresh "installation" of roundcube.

gabrielt commented 1 year ago

Take a look at the Rouncube error log file, it might give you a clue there.

schickel007 commented 1 year ago

i managed it out.... totally strange behavior.

my issue was, that the plugin didn't appear in the list even it's configured. Don't ask me why, but after restarting php8.1-fpm.service the plugin was listed and I'm able to configure 2fa.

gabrielt commented 1 year ago

Probably something cache-related.

ulab commented 5 months ago

If this is fixed, close the issue perhaps?

lpalgarvio commented 2 months ago

works for me using the simple boolean true $rcmail_config['users_allowed_2FA'] = true;