• Hi,

    Very nice script, I use if to secure my website.

    One thing I’ve found annoying, when you have the second screen
    I always start to type the OTP and press enter only to find the input is not in focus.
    so nothing is entered and I have to start again.

    But.. I’ve found a way to get the focus on the the second input..

    I’ve edit line 546 on the google-authenticator.php file
    and changed it into this:
    echo "\t\t<input type=\"text\" name=\"googleotp\" id=\"googleotp\" class=\"input\" value=\"\" size=\"20\" style=\"ime-mode: inactive;\" autocomplete=\"off\" autofocus /></label>\n";
    ( yes I just added autofocus to this line ?? )
    And now I have my focus when I log in ??

    Just sharing this because I think you might find this useful.

    Thank you for a great plugin.

    Love,
    Amy

  • The topic ‘Automatic focus on second screen for OTP input’ is closed to new replies.