CoreFiles by mySites.guru
default.php49 lines, 1,392 bytes, from Joomla_4.2.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta1
md5
2c38b5c958f77c82ffd72976f46d146c
sha1
38d42a9f50aa354473c7adbce49132b8efc06124
sha256
564fc5510e3f137962aea1377f9d94afbeaf8c8b06ce1528ffd77fd270f7d605
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Multifactorauth.webauthn
 *
 * @copyright   (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

// Prevent direct access
defined('_JEXEC') || die;

//phpcs:ignorefile

use Joomla\CMS\Language\Text;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Uri\Uri;

// This method is only available on HTTPS
if (Uri::getInstance()->getScheme() !== 'https'): ?>
	<div id="multifactorauth-webauthn-nothttps" class="my-2">
		<div class="alert alert-danger">
			<h2 class="alert-heading">
				<span class="icon-cancel-circle" aria-hidden="true"></span>
				<?php echo Text::_('PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NOTHTTPS_HEAD'); ?>
			</h2>
			<p>
				<?php echo Text::_('PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NOTHTTPS_BODY'); ?>
			</p>
		</div>
	</div>
<?php
	return;
endif;

$this->app->getDocument()->getWebAssetManager()->useScript('plg_multifactorauth_webauthn.webauthn');

?>
<div id="multifactorauth-webauthn-missing" class="my-2">
	<div class="alert alert-danger">
		<h2 class="alert-heading">
			<span class="icon-cancel-circle" aria-hidden="true"></span>
			<?php echo Text::_('PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NOTAVAILABLE_HEAD'); ?>
		</h2>
		<p>
			<?php echo Text::_('PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NOTAVAILABLE_BODY'); ?>
		</p>
	</div>
</div>

The same content is in 2 releases, Joomla 4.2.0-beta1 to 4.2.0-beta2. See them all, or every version of this file.