Skip to content

Commit

Permalink
Merge pull request #8 from sh4msi/main
Browse files Browse the repository at this point in the history
Fixed error in simultaneous use with 'Laravel Fortify'
  • Loading branch information
dmandrade authored Mar 20, 2023
2 parents f17c878 + 1c8691b commit 0f5f397
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FilamentTwoFactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/TwoFactorAuthenticatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0f5f397

Please # to comment.