I’m writing to seek assistance with an issue I’ve encountered while setting up the authenticator in Usermin. While everything works smoothly in Webmin, the same setup in Usermin leads to errors. I’ve tried to troubleshoot using suggestions from the following discussions:
Unfortunately, none of the fixes provided in these discussions seem to resolve the issue for me.
To give a bit more background, I’m coming from Yunohost and am relatively new to Virtualmin. I’ve been impressed with the flexibility and features Virtualmin offers, particularly around user management and backups, which were limited in Yunohost. Still, setting up Usermin authenticator has proven to be a challenge.
Everything in my environment is up to date, as this is a fresh install, but this specific issue persists. I’d appreciate any guidance or insights into how I can resolve the problem.
Sign up for two-factor authentication with provider Google Authenticator ..
.. complete. Your ID with this provider is*BEEEEEP*.
HTTP/1.0 500 Perl execution failed Server: MiniServ/2.102 Date: Thu, 10 Oct 2024 20:29:54 GMT Content-type: text/html; Charset=utf-8 Connection: close
ERROR — PERL EXECUTION FAILED
Undefined subroutine &twofactor::can_generate_qr called at twofactor-funcs-lib.pl line 235.
Note: Partly of this error message was another language so had to translate it
Tx, but it did not seem to change anything I can log in to Usermin (just as before) with no prompt for 2FA and nothing added to the Usermin Menu.
Yes, I did restart Usermin after selecting “Google Authenticator” as the provider. also logged in using Roundcube as normal - no 2FA and no error messages either
I don’t know why but also would have expected such a critical security change to have been notified to all users?
Sorry for adding that … but it maybe an oversight when google 2fa was removed from webmin login, have you tried to add 2fa to webmin also ? Tbf I don’t use 2fa in any place that I don’t have to
I’m not saying that I just find it a pain, sometimes I dont have my phone with me or to hand and can not receive the pesky code but if you want to use 2fa, use it
LOL, me too! But I don’t even have to worry about it anymore. Whether you’re on MacOS, Linux, or yes, even where the Windblows (Windows), there are tools that can handle 2FA automatically for you. For example, password managers like Bitwarden or 1Password can store 2FA codes and autofill them, or you can use browser extensions that automate the process. This way, you get the extra security without the hassle of always needing your phone to receive the code. Makes life a lot easier!