mirror of
https://github.com/antonioribeiro/google2fa.git
synced 2026-04-26 16:45:49 +03:00
[GH-ISSUE #60] QR Codes not working in Laravel 5.4. #497
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/google2fa#497
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MaverickMartyn on GitHub (May 19, 2017).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/60
I keep getting invalid QR codes when using default settings on Laravel 5.4.
Here is my code:
I should note that I am using the Microsoft Authenticator app on Windows 10 mobile, but my coworker is having the same issue using Google Authenticator on Android.
Also the Secrets themselves work just fine, if entered manually.
What gives?
@tonydew commented on GitHub (May 20, 2017):
I'm using this in a brand new test 5.4 projects and it's generating both the
getQRCodeGoogleUrl()andgetQRCodeInline()QR codes. Of course, to use the latter, you need tocomposer require "bacon/bacon-qr-code":"~1.0"too.@MaverickMartyn commented on GitHub (May 20, 2017):
I figured it out. My mistake. I was tired and missed an error in my code above.
And as you can see from above, I used the Google url variant, and it did generate it just fine.
I just didn't give it the actual secret, because of a mistake in my code.
Closing this issue now.