From 28b99ce74a5b8a2223eddbb4a890dbfb91d9e49d Mon Sep 17 00:00:00 2001 From: ArrayIterator <37867551+ArrayIterator@users.noreply.github.com> Date: Wed, 24 Apr 2024 23:36:44 +0700 Subject: [PATCH] Update Authenticator.php --- src/Auth/Google/Authenticator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [