phpBB Two Factor Authentication

Google API alternative - phpBB Two Factor Authentication

Google API alternative

by tdotrob » Sun Jun 16, 2024 7:27 pm

I wasn't getting QR codes to display. I found the post Local QR-code generation instead chart-googleapis, but my host does not offer the required modules or allow root access to install them.

After a bit of searching, I found a free API alternative at QRServer.com:

Code: Select all

//  Modify ext/paul999/tfa/modules/otp.php
// 'TFA_QR_CODE'   => 'https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl=' . $QR,
   'TFA_QR_CODE'   => 'https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=' . $QR,
Hope that helps someone else.
User avatar
tdotrob
Registered User
Posts: 9
Joined: Sun Apr 07, 2024 4:02 pm
Name: T.Rob Wyatt