Closed PVasileff closed 6 months ago
So the problem is in
$rcmail_config['users_allowed_2FA'] = array('@');
because, when I modify it to:
$rcmail_config['users_allowed_2FA'] = array('myuser@domain.com','another@domain2.com');
everithings is ok when using config.inc.php..
For login I using user@$domain.com as username - how can I allow plugin to be used from all of my domains and users that have mailboxes : ?
It supports regular expressions, try defining it like this to enable it for all users and domains;
$rcmail_config['users_allowed_2FA'] = array('.*@.*');
I couldn't even make it work with
$rcmail_config['users_allowed_2FA'] = array('.*@.*');
I had to do:
$rcmail_config['users_allowed_2FA'] = array('.*');
And if I give a test with a specific user like this:
$rcmail_config['users_allowed_2FA'] = array('user@example.org*');
it doesn't work.
I have to do this only:
$rcmail_config['users_allowed_2FA'] = array('user');
worked for me without address checking.
if the simplicity is good enough for you, try it:
$rcmail_config['users_allowed_2FA'] = true;
I have installed Roundcube Webmail 1.4.11 and enabled twofactor_gauthenticator in roundcube/config/config.inc.php Roundcube configured to use elastic theme and after logged in and click about I see loaded plugin.
IF in /usr/share/roundcube/plugins/twofactor_gauthenticator/
I have moved config.inc.php.dist to config.inc.php and here is my config:
2factor authentication missing in Settings in roundcube and If i have allowed 2fa for some email account - users can loging wihtout prompt for 2fa.
If I move config.inc.php to config.inc.php.dist may used default settings in twofactor_gauthenticator.php and plugin showed up in settings ...
I want to use settings that I setting up in config php such allow_save_device_30days = false but when I move config.inc.php.dist to config.php 2fa missing in settings .. Nice recursion.
Can any help me with that?
Where I wrong ?