%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/twofa/views/check/
Upload File :
Create Path :
Current File : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/twofa/views/check/index.php

<?php

/**
 * @link https://www.humhub.org/
 * @copyright Copyright (c) 2020 HumHub GmbH & Co. KG
 * @license https://www.humhub.com/licences
 */

use humhub\modules\twofa\drivers\BaseDriver;
use humhub\modules\twofa\models\CheckCode;
use humhub\widgets\SiteLogo;
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;

/**
 * @var $model CheckCode
 * @var $driver BaseDriver
 * @var $rememberDays string
 */

$this->pageTitle = Yii::t('TwofaModule.base', 'Two-Factor Authentication');

?>

<div class="container" style="text-align: center;">
    <?= SiteLogo::widget(['place' => 'login']); ?><br>
    <div class="row">
        <div id="must-change-password-form" class="panel panel-default animated bounceIn"
             style="max-width: 400px; margin: 0 auto 20px; text-align: left;">
            <div class="panel-heading">
                <?= Yii::t('TwofaModule.base', '<strong>Two-factor</strong> authentication'); ?>
            </div>
            <div class="panel-body">
                <?php $form = ActiveForm::begin(['enableClientValidation' => false]); ?>

                <?php $driver->beforeCheckCodeFormInput($form, $model); ?><br/>

                <?= $form->field($model, 'code')->textInput(); ?>

                <?php if ($rememberDays): ?>
                    <?= $form->field($model, 'rememberBrowser')->checkbox()
                        ->label(Yii::t('TwofaModule.base', 'Remember this browser for {0} days', [$rememberDays])) ?>
                <?php endif; ?>

                <br/>
                <?= Html::submitButton(Yii::t('TwofaModule.base', 'Verify'), ['id' => 'verify-button', 'class' => 'btn btn-primary', 'data-ui-loader' => ""]); ?>

                <?php ActiveForm::end(); ?>

                <?= Html::a(Yii::t('TwofaModule.base', 'Log out'), ['/user/auth/logout'],
                    ['data-method' => 'POST', 'class' => 'pull-right', 'data-pjax-prevent' => true]) ?>
            </div>
        </div>
    </div>
</div>

<script <?= \humhub\libs\Html::nonce() ?>>
    $(function () {
        // set cursor to code field
        $('#checkcode-code').focus();
    });
</script>

Zerion Mini Shell 1.0