Viewing 16 replies (of 16 total)
  • Hi, it’s easy to make the code 8 digits long and so safer. I’m not a PHP guy, but IMO you should be able to create the code length option easily. This patch just changes 6 => 8 digit code.

    You’ve to use QR code to set mobile google authenticator, but it works.

    81c81
    <       if ( strlen( $thistry ) != 8) {
    ---
    >       if ( strlen( $thistry ) != 6) {
    115c115
    <               $value = $value % 100000000;
    ---
    >               $value = $value % 1000000;
    256c256
    <       $chl = urlencode( "otpauth://totp/{$GA_description}?secret={$GA_secret}&digits=8" );
    ---
    >       $chl = urlencode( "otpauth://totp/{$GA_description}?secret={$GA_secret}" );
Viewing 16 replies (of 16 total)
  • The topic ‘Display settings on a Page’ is closed to new replies.