From 1c8691b8a99116ee143643ca4dfe43e0a4e0d9f8 Mon Sep 17 00:00:00 2001 From: Saeed Shamsi Date: Tue, 31 Jan 2023 15:56:32 +0330 Subject: [PATCH] Fixed error in simultaneous use with 'Laravel Fortify' --- src/FilamentTwoFactor.php | 2 +- src/TwoFactorAuthenticatable.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FilamentTwoFactor.php b/src/FilamentTwoFactor.php index 098c1ac..bcdd8f2 100644 --- a/src/FilamentTwoFactor.php +++ b/src/FilamentTwoFactor.php @@ -38,7 +38,7 @@ public function __construct(Google2FA $engine, Repository $cache = null) public function hasTwoFactorEnabled($user) { - return optional($user)->hasEnabledFilamentTwoFactorAuthentication(); + return optional($user)->hasEnabledTwoFactorAuthentication(); } public function generateRecoveryCode() diff --git a/src/TwoFactorAuthenticatable.php b/src/TwoFactorAuthenticatable.php index b970770..2a3d68e 100644 --- a/src/TwoFactorAuthenticatable.php +++ b/src/TwoFactorAuthenticatable.php @@ -16,7 +16,7 @@ trait TwoFactorAuthenticatable * * @return bool */ - public function hasEnabledFilamentTwoFactorAuthentication() + public function hasEnabledTwoFactorAuthentication() { return ! is_null($this->two_factor_secret) && ! is_null($this->two_factor_confirmed_at);