<?php
/* Smarty version 3.1.36, created on 2024-10-14 13:37:52
  from '/home/planetgp/public_html/billing/templates/twenty-one/two-factor-challenge.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.36',
  'unifunc' => 'content_670d1eb0752647_47151461',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'aaa78757b89d6f6991e64e7b3b080bb1513ac7e0' => 
    array (
      0 => '/home/planetgp/public_html/billing/templates/twenty-one/two-factor-challenge.tpl',
      1 => 1686724572,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_670d1eb0752647_47151461 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="card mw-540 mb-md-4 mt-md-4">
    <div class="card-body px-sm-5 py-5">

        <h3 class="card-title"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'twofactorauth'),$_smarty_tpl ) );?>
</h3>

        <?php $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/flashmessage.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('align'=>"center"), 0, true);
?>

        <?php if ($_smarty_tpl->tpl_vars['newbackupcode']->value) {?>
            <?php ob_start();
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'twofabackupcodereset'),$_smarty_tpl ) );
$_prefixVariable1=ob_get_clean();
$_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"success",'msg'=>$_prefixVariable1,'textcenter'=>true), 0, true);
?>
        <?php } elseif ($_smarty_tpl->tpl_vars['incorrect']->value) {?>
            <?php ob_start();
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'twofa2ndfactorincorrect'),$_smarty_tpl ) );
$_prefixVariable2=ob_get_clean();
$_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"error",'msg'=>$_prefixVariable2,'textcenter'=>true), 0, true);
?>
        <?php } elseif ($_smarty_tpl->tpl_vars['error']->value) {?>
            <?php $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"error",'msg'=>$_smarty_tpl->tpl_vars['error']->value,'textcenter'=>true), 0, true);
?>
        <?php } else { ?>
            <?php ob_start();
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'twofa2ndfactorreq'),$_smarty_tpl ) );
$_prefixVariable3=ob_get_clean();
$_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"warning",'msg'=>$_prefixVariable3,'textcenter'=>true), 0, true);
?>
        <?php }?>

        <form method="post" action="<?php echo routePath('login-two-factor-challenge-verify');?>
" id="frmTwoFactorChallenge"<?php if ($_smarty_tpl->tpl_vars['usingBackup']->value) {?> class="w-hidden"<?php }?>>
            <div class="margin-bottom">
                <?php echo $_smarty_tpl->tpl_vars['challenge']->value;?>

            </div>
        </form>

        <form method="post" action="<?php echo routePath('login-two-factor-challenge-backup-verify');?>
" id="frmTwoFactorBackup"<?php if (!$_smarty_tpl->tpl_vars['usingBackup']->value) {?> class="w-hidden"<?php }?>>
            <div class="margin-bottom">
                <input type="text" name="twofabackupcode" class="form-control form-control-lg" placeholder="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'twofabackupcodelogin'),$_smarty_tpl ) );?>
">
                <br/>
                <button type="submit" class="btn btn-primary btn-lg btn-block" id="btnLogin">
                    <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'loginbutton'),$_smarty_tpl ) );?>

                </button>
            </div>
            <p class="text-center">
                <a href="#" class="btn btn-default btn-block mt-2" id="backupCodeCancel">
                    <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'cancel'),$_smarty_tpl ) );?>

                </a>
            </p>
        </form>

    </div>
    <div class="card-footer px-md-5" id="frmTwoFactorChallengeFooter">
        <small>
            <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'twofacantaccess2ndfactor'),$_smarty_tpl ) );?>

            <a href="#" id="loginWithBackupCode">
                <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'twofaloginusingbackupcode'),$_smarty_tpl ) );?>

            </a>
        </small>
    </div>
</div>

<?php echo '<script'; ?>
>
    jQuery(document).ready(function() {
        jQuery('#loginWithBackupCode').click(function(e) {
            e.preventDefault();
            jQuery('#frmTwoFactorChallenge').hide();
            jQuery('#frmTwoFactorChallengeFooter').hide();
            jQuery('#frmTwoFactorBackup').show();
        });
        jQuery('#backupCodeCancel').click(function(e) {
            e.preventDefault();
            jQuery('#frmTwoFactorChallenge').show();
            jQuery('#frmTwoFactorChallengeFooter').show();
            jQuery('#frmTwoFactorBackup').hide();
        });
    });
<?php echo '</script'; ?>
>
<?php }
}
