🆙 More fixes 🆙

This commit is contained in:
Remco committed 2026-01-19 20:50:18 +01:00
1 parent b983f325f4
commit 93d3067306
5 files changed
+21 -8

No files matched your search

+7 -1
View File
@@ -365,8 +365,14 @@ class User extends Authenticatable implements FilamentUser, HasName
return false;
}
$decrypted = decrypt($secret);
if (! is_string($decrypted)) {
return false;
}
$codeIsValid = app(TwoFactorAuthenticationProvider::class)
->verify((string) decrypt($secret), $code);
->verify($decrypted, $code);
if (! $codeIsValid) {
return false;