This commit is contained in:
DIGIDEV\corer committed 2026-10-20 13:16:38 +09:00
commit 3e4a056b14
67 files changed
+13926

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
/* 2FA activation: draws the otpauth:// QR code locally (no external service). */
(function () {
'use strict';
var box = document.querySelector('[data-otpauth]');
if (!box || typeof window.qrcode !== 'function') return;
var qr = window.qrcode(0, 'M');
qr.addData(box.getAttribute('data-otpauth'));
qr.make();
box.innerHTML = qr.createSvgTag({ cellSize: 5, margin: 4, scalable: true });
})();