[ZBX-25749] TOTP QR-Code with dark theme not working Created: 2024 Dec 16  Updated: 2025 May 19  Resolved: 2025 May 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 7.0.6
Fix Version/s: 7.0.12rc1, 7.2.6rc1, 7.4.0beta1

Type: Problem report Priority: Major
Reporter: Dirk Bongard Assignee: Martins Talbergs
Resolution: Fixed Votes: 0
Labels: QR
Remaining Estimate: Not Specified
Time Spent: 5h 40m
Original Estimate: Not Specified
Environment:

Ubuntu 24.04


Attachments: JPEG File QR-Code.jpg     PNG File Screenshot 2024-12-16 at 23.55.00.png     PNG File Screenshot 2024-12-16 at 23.55.37.png    
Issue Links:
Duplicate
is duplicated by ZBX-26361 MFA: TOTP Cannot scan QR directly fro... Closed
Team: Team B
Sprint: Prev.Sprint, S25-W4/5, S25-W10/11, S25-W12/13, S25-W14/15, S25-W18/19
Story Points: 0.5

 Description   

If dark is the default theme, the QR-Code for TOTP verification is white on black. No TOTP Authenticators works in this case.



 Comments   
Comment by Alexey Pustovalov [ 2024 Dec 16 ]

Please elaborate what you see / some error / empty screen?

Comment by Dirk Bongard [ 2024 Dec 16 ]

What I see is ok, but if the QR-Code is white on black, no authenticator apps works. Nothing happened. If I switch to a bright theme (QR Code black on white) it works. Tested it with MS Authenticator and FreeOTP

Comment by Alexey Pustovalov [ 2024 Dec 16 ]

That is strange, I tested both dark themes, and MS Authenticator works fine!

Are you able to read these samples?

Comment by Alex Kalimulin [ 2024 Dec 16 ]

Same here, my app can read these codes regardless of colors. But the number of sources suggest that some phones (or, perhaps, some barcode scan libraries) have problems with inverted QRs. Let's make it always black on white.

Comment by Dirk Bongard [ 2024 Dec 16 ]

Thanks for your response. I have thested other Authenticators (Android based):

  • Google: Works,
  • MS: no reaction
  • FreeOTP: no reaction

Add the code by tha hand it works too.
If I changed to the default (blue/bright) theme all Authenticators works.
I think it is not a issue of Zabbix itself, but it seems the scanner can't read the QR if it is white on black.

QR-Code.jpg|thumbnail!

Comment by Martins Talbergs [ 2025 Mar 31 ]

Available in:

Comment by dimir [ 2025 Apr 30 ]

Looks like after the fix, if using MFA with dark background Google Authenticator on Android phones do not recognise the QR code. On iPhone it did fine.

Comment by Edgars Melveris [ 2025 Apr 30 ]

Another report created in relation to this: ZBX-26378

Generated at Sat Aug 02 09:01:12 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.