takigama / ga4php

Automatically exported from code.google.com/p/ga4php
4 stars 1 forks source link

Codes not lining up #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate a token for the user
2. Generate an URL for the user
3. Put the URL into an QR Code
4. Scan it with the Google Authenticator app
5. Enter the code to test whether it matches

What is the expected output? What do you see instead?
I expect the test to pass, but it always returns false

What version of the product are you using? On what operating system?
Latest on Linux

Please provide any additional information below.
I've made no changes to your authenticator, it saves the user data correctly 
but the codes never match.
Here is the information from your debug lines:

[Sun Mar 27 11:55:52 2011] [error] [client xx.xx.xx.xx] kmac: 1301219752, 
1301219722, 1301219782, 43373990, 43373992
[Sun Mar 27 11:55:52 2011] [error] [client xx.xx.xx.xx] testing code: 105847, 
341118
[Sun Mar 27 11:55:52 2011] [error] [client xx.xx.xx.xx] testing code: 105847, 
145242
[Sun Mar 27 11:55:52 2011] [error] [client xx.xx.xx.xx] testing code: 105847, 
105712

P.S: I've attached a QR code generator completely written in PHP, since you are 
looking for one.
P.P.S: I've checked the obvious issues, the time on the device/server is in 
sync (with NTP), the QRImage contained the correct URL.

Original issue reported on code.google.com by m...@woet.me on 27 Mar 2011 at 10:04

Attachments:

GoogleCodeExporter commented 9 years ago
By the way, the numbers in the debug information change constantly - shouldn't 
they be the same for at least 30 seconds? (for the time based expiry)

Original comment by m...@woet.me on 27 Mar 2011 at 10:05

GoogleCodeExporter commented 9 years ago
I'm sorry, issue already found, I still had a 'setUser' somewhere in the code 
which kept writing a new tokenkey.
Thanks again for this great class and I hope the QR Code functions help you :)

Original comment by m...@woet.me on 27 Mar 2011 at 10:12

GoogleCodeExporter commented 9 years ago
Wow, i didnt realise i hadnt setup issue notifications so I didnt see this till 
now.

Sorry about that.

Original comment by takig...@gmail.com on 20 Feb 2012 at 4:16