Skip to content

Commit

Permalink
Fix instance declaration for qrcode
Browse files Browse the repository at this point in the history
  • Loading branch information
kbwhizz committed Nov 1, 2024
1 parent 55fb9e2 commit c369bda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ public function genQRcode(): array
$google2fa = new Google2FA();
$qrinfo['secret'] = $google2fa->generateSecretKey();
$data = 'otpauth://totp/' . $this->user_id . '?secret=' . $qrinfo['secret'] . '&issuer=' . $_SERVER['SERVER_NAME'];
$qrinfo['qrcode'] = new QRCode();
$qrinfo['qrcode'] = QRCode->render($data);
$qrcode = new QRCode();
$qrinfo['qrcode'] = $qrcode->render($data);
return $qrinfo;
}

Expand Down

0 comments on commit c369bda

Please sign in to comment.