We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adc255d commit 42beb57Copy full SHA for 42beb57
1 file changed
src/Auth/Google/Authenticator.php
@@ -141,7 +141,7 @@ public static function calculateCode(
141
int $codeLength = 6,
142
int $period = self::PERIOD
143
): string {
144
- $codeLength = $codeLength !== 6 && $codeLength !== 8 ? 6 : 8;
+ $codeLength = $codeLength !== 6 && $codeLength !== 8 ? 6 : $codeLength;
145
self::$time ??= time();
146
$timeSlice ??= self::getTimeSlice(self::$time, period: $period);
147
$timeSlice = pack("N", $timeSlice);
0 commit comments