perf: 双重验证显示secret

This commit is contained in:
xiaojunnuo
2026-02-06 23:26:57 +08:00
parent cbd8699801
commit febd6d32cf
4 changed files with 24 additions and 5 deletions
@@ -33,7 +33,8 @@ export class TwoFactorService {
//生成qrcode base64
const qrcode = await import("qrcode");
return await qrcode.toDataURL(qrcodeContent);
const qrcodeBase64 = await qrcode.toDataURL(qrcodeContent);
return {qrcode:qrcodeBase64,link:qrcodeContent,secret}
}