[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/plugins/multifactorauth/webauthn/tmpl/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Plugin
   5   * @subpackage  Multifactorauth.webauthn
   6   *
   7   * @copyright   (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  // Prevent direct access
  12  defined('_JEXEC') || die;
  13  
  14  use Joomla\CMS\Language\Text;
  15  use Joomla\CMS\Uri\Uri;
  16  
  17  // This method is only available on HTTPS
  18  if (Uri::getInstance()->getScheme() !== 'https') : ?>
  19      <div id="multifactorauth-webauthn-nothttps" class="my-2">
  20          <div class="alert alert-danger">
  21              <h2 class="alert-heading">
  22                  <span class="icon-cancel-circle" aria-hidden="true"></span>
  23                  <?php echo Text::_('PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NOTHTTPS_HEAD'); ?>
  24              </h2>
  25              <p>
  26                  <?php echo Text::_('PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NOTHTTPS_BODY'); ?>
  27              </p>
  28          </div>
  29      </div>
  30      <?php
  31      return;
  32  endif;
  33  
  34  $this->getApplication()->getDocument()->getWebAssetManager()->useScript('plg_multifactorauth_webauthn.webauthn');
  35  
  36  ?>
  37  <div id="multifactorauth-webauthn-missing" class="my-2">
  38      <div class="alert alert-danger">
  39          <h2 class="alert-heading">
  40              <span class="icon-cancel-circle" aria-hidden="true"></span>
  41              <?php echo Text::_('PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NOTAVAILABLE_HEAD'); ?>
  42          </h2>
  43          <p>
  44              <?php echo Text::_('PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NOTAVAILABLE_BODY'); ?>
  45          </p>
  46      </div>
  47  </div>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer