diff --git a/src/Auth/Google/Authenticator.php b/src/Auth/Google/Authenticator.php index 9f244e8..3d30f8c 100644 --- a/src/Auth/Google/Authenticator.php +++ b/src/Auth/Google/Authenticator.php @@ -162,7 +162,7 @@ public static function createLink( int $codeLength = 6, int $period = self::PERIOD ): string { - $codeLength = $codeLength !== 6 && $codeLength !== 8 ? 6 : 8; + $codeLength = $codeLength !== 6 && $codeLength !== 8 ? 6 : $codeLength; $period = max($period, 15); $period = min($period, 1800); $args = [