Skip to content

Commit

Permalink
Fix 500 error on 2fa page
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed May 20, 2024
1 parent 418d884 commit c916b38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class DisableTwoFactorAuthentication
*
* @return void
*/
public function __invoke(User $user)
public function __invoke($user)
{
if (! is_null($user->two_factor_secret) ||
! is_null($user->two_factor_recovery_codes) ||
Expand Down
2 changes: 1 addition & 1 deletion src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class GenerateQrCodeAndSecretKey
*
* @return array{string, string}
*/
public function __invoke(User $user): array
public function __invoke($user): array
{

$google2fa = new Google2FA();
Expand Down

0 comments on commit c916b38

Please sign in to comment.