Two Factor QR Code not showing, instead redirected to default/home URL

First of all, this is my first post here at LibreNMS forum.

I have been trying out LibreNMS for both work and home projects and today I went on to try out Two Factor Authentication feature but whenever I clicked on Generate Two Factor Secret Key under My Settings, it always redirects me to the home page with nothing happening. I have tried it with an admin user as well as a read only user. On Chrome, Vivaldi and Firefox with Incognito mode also.

The Two Factor Settings has been enabled on the Global Settings as well.
Has anyone experience this problem as well? What did you do to resolve this?

Thanks for reading my issues. Have great day.

VALIDATE OUTPUT:

Component Version
LibreNMS 22.6.0-4-gdc3ddbaff
DB Schema 2022_05_30_084932_update-app-status-length (242)
PHP 7.4.3
Python 3.8.10
MySQL 10.3.34-MariaDB-0ubuntu0.20.04.1
RRDTool 1.7.2
SNMP 5.8

====================================

[OK] Composer Version: 2.3.7
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK]
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] rrd_dir is writable
[OK] rrdtool version ok

Anyone, please?

Yes, he has this bug. I didn’t have time to debug or report to the community.

If you type ./lnms config:set twofactor true in the CLI it will work.

1 Like

Thank you so much! It works! Looks like the Web UI has a bug.

1 Like