Skip to content

Commit

Permalink
🔖更新展示兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
C0003308 committed Nov 9, 2023
1 parent 2a26837 commit 07f0dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/DcatAuthGoogle2FaAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ protected function settingForm()
);
}
$googleTwoFaSecret = $google2fa->generateSecretKey(32);
$qrcode = $google2fa->getQRCodeInline(config('admin.name'), $user->username, $googleTwoFaSecret, 330);
$qrcode = $google2fa->getQRCodeInline(config('admin.name'), $user->username, $googleTwoFaSecret);
$form->display('google_2fa_qrcode', DcatAuthGoogle2FaServiceProvider::trans('dcat-auth-google-2fa.google_2fa_qrcode'))
->help(DcatAuthGoogle2FaServiceProvider::trans('dcat-auth-google-2fa.google_2fa_qrcode_help'))
->width(3)
->width(4)
->with(function () use ($qrcode, $google2fa) {
if (strpos($qrcode, ';base64,') !== false) {
return '<img src="' . $qrcode . '" />';
Expand Down

0 comments on commit 07f0dce

Please sign in to comment.