[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 /** 2 * @package Joomla.Plugin 3 * @subpackage Multifactorauth.webauthn 4 * 5 * @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org> 6 * @license GNU General Public License version 2 or later; see LICENSE.txt 7 */ 8 ((Joomla, document, qrcode) => { 9 10 document.addEventListener('DOMContentLoaded', () => { 11 const elTarget = document.getElementById('users-mfa-totp-qrcode'); 12 const qrData = Joomla.getOptions('plg_multifactorauth_totp.totp.qr'); 13 14 if (!elTarget || !qrData) { 15 return; 16 } 17 18 const qr = qrcode(0, 'H'); 19 qr.addData(qrData); 20 qr.make(); 21 elTarget.innerHTML = qr.createImgTag(4); 22 }); // eslint-disable-next-line no-undef 23 })(Joomla, document, qrcode);
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |