{layout name="layout"}
{if Request()->action == 'update'} {/if}

{php} $totp = \OTPHP\TOTP::create($row->totp_secret); $totp->setLabel($row->username); $totp->setIssuer('问卷'); $qrCodeUri =$totp->getProvisioningUri(); if(!$row->totp_secret){ $row->totp_secret = $totp->getSecret(); $row->save(); } echo ''; {/php}
{include file="common/file_preview" id="preview" /}