We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 817b3ca commit 86102ccCopy full SHA for 86102cc
1 file changed
app/Http/Controllers/TwoFactorController.php
@@ -76,7 +76,7 @@ public function verifyYubikey($data, Collection $twoFactors, $user): bool
76
// Get the first 12 characters of the code
77
$identifier = strtolower(substr($data['code'], 0, 12));
78
// Find the identifier in $collection
79
- $twoFactor = $twoFactors->firstWhere(fn($factor) => strtolower($factor->identifier) === $identifier);
+ $twoFactor = $twoFactors->firstWhere(fn ($factor) => strtolower($factor->identifier) === $identifier);
80
if ($twoFactor === null) {
81
throw ValidationException::withMessages(['code' => 'This Yubikey is not known.']);
82
}
0 commit comments