🆙 More fixes 🆙

This commit is contained in:
Remco
2026-01-19 20:50:18 +01:00
parent b983f325f4
commit 93d3067306
5 changed files with 21 additions and 8 deletions
+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;