I want to use on the site authentication from Google. I use this library - link

Everything is generated, the application reads the code, but when checking the code does not match. I tried different applications, they all show the same code, because of this I decided that the problem is in the server. Can anyone come across this?

    2 answers 2

    Check the time on your smartphone. For anroid there is a program ClockSync. The code depends on time. A difference of 30 seconds makes it inoperative.

      Try to change the time zone on the server. php.ini -> date.timezone = "YOUR TIMEZONE". Also try to change the time on the device where Google Authenticator is.