Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The pluggin activated and configured but 2fa is not used - login directly #172

Open
andrewhack opened this issue Nov 7, 2022 · 5 comments

Comments

@andrewhack
Copy link

Hi,

I have RC 1.4.13 on debian 11 and the latest twofactor_gauthenticator plugin.
As shown in the pictures, the plugin is configured, including the user.
No field to enter the code on the login screen and after authentication, goes directly to the mailbox.

Any suggestions?

image
image
image

@SKB-CGN
Copy link

SKB-CGN commented Nov 9, 2022

Hi,
please have a look into the file: config.inc.php or if you do not have the file rename config.inc.php.dist into it. Then open the file and add your email address to the array in line: 20

$rcmail_config['users_allowed_2FA'] = array('you@me.com','me@you.com');

Logout and re-login. This should work.

You can also force all users to use 2FA in line 3.

@andrewhack
Copy link
Author

2FA is forced. Adding specific users in users_allowed_2FA don't solve the issue.
Direct login, no 2FA

@SKB-CGN
Copy link

SKB-CGN commented Nov 15, 2022

On my end it was working perfectly. Further, if have the version:
2022-11-15 11_00_26-Kreyenborg koeln - Webmail __ Posteingang – Mozilla Firefox

@GwynethLlewelyn
Copy link

GwynethLlewelyn commented Jan 31, 2023

One silly question: what is the best regexp for allowing all users to use the plugin, but not force them to do so?

I'm using $rcmail_config['users_allowed_2FA'] = array('*'); but, since it's supposed to be a regexp, it's probably better to use .* instead?

I'm just asking because after upgrading today (it's been quite a while since I did an upgrade!), I noticed that the 2FA functionality stopped appearing on user profiles — even those who had it correctly set up.

@GwynethLlewelyn
Copy link

GwynethLlewelyn

I'm using $rcmail_config['users_allowed_2FA'] = array('*'); but, since it's supposed to be a regexp, it's probably better to use .* instead?

Quoting myself: indeed, that makes all the difference. Silly me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants