Skip to content

Commit

Permalink
Update Authenticator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayIterator authored Nov 19, 2024
1 parent adc255d commit 42beb57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/Google/Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static function calculateCode(
int $codeLength = 6,
int $period = self::PERIOD
): string {
$codeLength = $codeLength !== 6 && $codeLength !== 8 ? 6 : 8;
$codeLength = $codeLength !== 6 && $codeLength !== 8 ? 6 : $codeLength;
self::$time ??= time();
$timeSlice ??= self::getTimeSlice(self::$time, period: $period);
$timeSlice = pack("N", $timeSlice);
Expand Down

0 comments on commit 42beb57

Please sign in to comment.