partials
4 months ago
2fa-initial-setup-form.php
4 months ago
2fa-login-backup-code.php
4 months ago
2fa-login.php
4 months ago
backup-code-used.php
4 months ago
backup-codes.php
4 months ago
directory-hardening.tpl
4 months ago
error.php
4 months ago
weekly_report.php
4 months ago
whitelist-file.tpl
4 months ago
xml-rpc.tpl
4 months ago
xss-headers.tpl
4 months ago
2fa-login-backup-code.php
32 lines
| 1 | <style>#login { width:360px; padding:5% 0 0; }</style> |
| 2 | |
| 3 | <?php if ( ! empty( $args['error'] ) ) : ?> |
| 4 | <div id="login_error"><strong><?php echo esc_html( $args['error'] ); ?></strong><br /></div> |
| 5 | <?php endif ?> |
| 6 | |
| 7 | <form name="sgs2fa_form" id="loginform" action="<?php echo esc_url( $args['action'] ); ?>" method="post"> |
| 8 | <h1><?php esc_html_e( '2-factor Authentication', 'sg-security' ); ?></h1> |
| 9 | <br /> |
| 10 | <p class="sg-2fa-title"><?php esc_html_e( 'In order to log in, please enter one of the backup codes you have received on your first login:', 'sg-security' ); ?></p> |
| 11 | |
| 12 | <input type="hidden" name="backup-code-used" value="1" /> |
| 13 | <p> |
| 14 | <br /> |
| 15 | <label for="sgc2fabackupcode"><?php esc_html_e( 'Backup Code:', 'sg-security' ); ?></label> |
| 16 | <input name="sgc2fabackupcode" id="sgc2fabackupcode" class="input" value="" size="20" pattern="[0-9]*" autofocus /> |
| 17 | </p> |
| 18 | |
| 19 | <?php if ( $args['interim_login'] ) : ?> |
| 20 | <input type="hidden" name="interim-login" value="1" /> |
| 21 | <?php else : ?> |
| 22 | <input type="hidden" name="redirect_to" value="<?php echo esc_url( $args['redirect_to'] ); ?>" /> |
| 23 | <?php endif; ?> |
| 24 | |
| 25 | <input type="hidden" name="rememberme" id="rememberme" value="<?php echo esc_html( $args['rememberme'] ); ?>" /> |
| 26 | <p> |
| 27 | <br /> |
| 28 | <?php submit_button( __( 'Authenticate', 'sg-security' ) ); ?> |
| 29 | </p> |
| 30 | </form> |
| 31 | |
| 32 |