-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Hello, I was testing the built-in two-factor authentication with the db-auth service, but I can’t get it to work. Once enabled, if I go to the login page (https://mypage/tenant/auth/login?url=https%3A//mypage/tenant/) and log in with a user, it shows the QR code for setup. Scanning it works — I can see the issuer name and username correctly in the app (Google Authenticator).
However, once I enter the code and click “Confirm”, it redirects me back to the login page (this time with the URL changed to (https://mypage/tenant/auth/login). The same behavior occurs even if I enter an incorrect verification code.
Checking the db-auth service logs, I see the following warning after clicking “Confirm” on the setup page:
WARNING in db_auth: TOTP not enabled or not in login process
Am I missing something? Thanks!
I'm using qwc-db-auth:v2025.10.16 and qwc-base-db-migrate:v2025.10.13.