Skip to content

Commit

Permalink
feat(qrcode): Add Issuer to QRCode
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jun 30, 2024
1 parent d70bc6b commit 0659b39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/account/AccountQRCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ onMounted(() => {
const url = props.item.content.url;
const title = encodeURIComponent(props.item.content.title);
const secret = props.item.content.secret;
const issuer = props.item.content?.issuer || '';
const uri = `otpauth://${url}/${title}?secret=${secret}`;
const uri = `otpauth://${url}/${title}?secret=${secret}&issuer=${issuer}`;
QRCode.toCanvas(canvas.value!, uri);
});
Expand Down

0 comments on commit 0659b39

Please sign in to comment.