<?php
/**
 *---------------------------------------------------------------------------------------
 * @package       VP Smart Template
 *---------------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2012-2020 VirtuePlanet Services LLP. All rights reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       Abhishek Das
 * @email         info@virtueplanet.com
 * @link          https://www.virtueplanet.com
 *---------------------------------------------------------------------------------------
 */

defined('_JEXEC') or die;
?>
<div class="well">
	<?php echo JText::_('PLG_TWOFACTORAUTH_YUBIKEY_INTRO') ?>
</div>
<?php if ($new_totp): ?>
<fieldset>
	<legend><?php echo JText::_('PLG_TWOFACTORAUTH_YUBIKEY_STEP1_HEAD') ?></legend>
	<p><?php echo JText::_('PLG_TWOFACTORAUTH_YUBIKEY_STEP1_TEXT') ?></p>	
	<div class="form-group">
		<label class="col-sm-3 control-label" for="yubikeysecuritycode"><?php echo JText::_('PLG_TWOFACTORAUTH_YUBIKEY_SECURITYCODE') ?></label>
		<div class="col-sm-9"><input type="text" class="form-control" name="jform[twofactor][yubikey][securitycode]" id="yubikeysecuritycode" autocomplete="0"></div>
	</div>
</fieldset>
<?php else: ?>
<fieldset>
	<legend><?php echo JText::_('PLG_TWOFACTORAUTH_TOTP_RESET_HEAD') ?></legend>
	<p><?php echo JText::_('PLG_TWOFACTORAUTH_TOTP_RESET_TEXT') ?></p>
</fieldset>
<?php endif; ?>
