🆙 More fixes 🆙
This commit is contained in:
1 parent
b983f325f4
commit
93d3067306
5 files changed
+21
-8
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user