Skip to content

Commit 42beb57

Browse files
Update Authenticator.php
1 parent adc255d commit 42beb57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth/Google/Authenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public static function calculateCode(
141141
int $codeLength = 6,
142142
int $period = self::PERIOD
143143
): string {
144-
$codeLength = $codeLength !== 6 && $codeLength !== 8 ? 6 : 8;
144+
$codeLength = $codeLength !== 6 && $codeLength !== 8 ? 6 : $codeLength;
145145
self::$time ??= time();
146146
$timeSlice ??= self::getTimeSlice(self::$time, period: $period);
147147
$timeSlice = pack("N", $timeSlice);

0 commit comments

Comments
 (0)