Enable plugin "Two Factor Authentication - Google Authenticator"
When Google Authenticator is enabled in user profile the QR Code is generated
QR code is not generated
Joomla 3.9.4
Qr code is generated in /libraries/fof/encrypt/totp.php in line 157
"$encoder = "https://chart.googleapis.com/chart?chs=200x200&chld=Q|2&cht=qr&chl=";"
But the QR code generation service of Google is deprecated in March 14, 2019:
https://developers.google.com/chart/infographics/
Title |
|
Title |
|
Status | New | ⇒ | Discussion |
Removing it is not an option
For j3 we could use https://github.com/kazuhikoarase/qrcode-generator/blob/master/php/qrcode.php
For j4 presumably we are using something else already as fof isnt included
why is removing not an option? for convenient reasons you mean?
The JS versions fits better vor this use case in my opinion.
yes.
and I just checked that j4 has the same problem
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-03-20 00:26:05 |
Closed_By | ⇒ | Quy |
Closed_By | Quy | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/24252
Please test PR #24255
Please test PR #24255
So 2 possibilities, remove it or replace it with f. ex. qrcode http://phpqrcode.sourceforge.net (lib seams old enough to required php 5.3, untested)