~fkooman/vpn-user-portal

ref: 57df62b9a04e9b2391ca809e5ff9d76e524eceb1 vpn-user-portal/views/formAuthentication.php -rw-r--r-- 1.8 KiB
57df62b9François Kooman update CHANGES 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php $this->layout('base', ['pageTitle' => $this->t('Sign In')]); ?>
<?php $this->start('content'); ?>
    <div class="auth">
        <p>
            <?=$this->t('Please sign in with your username and password.'); ?>
        </p>

<?php if ($_form_auth_invalid_credentials): ?>
        <p class="error">
            <?=$this->t('The credentials you provided were not correct.'); ?>
        </p>
<?php endif; ?>

        <form class="frm" method="post" action="<?=$this->e($requestRoot); ?>_form/auth/verify">
            <fieldset>
<?php if ($_form_auth_invalid_credentials): ?>
                <label for="userName"><?=$this->t('Username'); ?></label>
                <input type="text" id="userName" name="userName" autocapitalize="off" placeholder="<?=$this->t('Username'); ?>" value="<?=$this->e($_form_auth_invalid_credentials_user); ?>" required>
                <label for="userPass"><?=$this->t('Password'); ?></label>
                <input type="password" id="userPass" name="userPass" placeholder="<?=$this->t('Password'); ?>" autofocus required>
<?php else: ?>
                <label for="userName"><?=$this->t('Username'); ?></label>
                <input type="text" name="userName" autocapitalize="off" placeholder="<?=$this->t('Username'); ?>" autofocus required>
                <label for="userPass"><?=$this->t('Password'); ?></label>
                <input type="password" name="userPass" placeholder="<?=$this->t('Password'); ?>" required>
<?php endif; ?>
            </fieldset>
            <fieldset>
                <input type="hidden" name="_form_auth_redirect_to" value="<?=$this->e($_form_auth_redirect_to); ?>">
                <button type="submit"><?=$this->t('Sign In'); ?></button>
            </fieldset>
        </form>
    </div>
<?php $this->stop('content'); ?>