You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -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