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-initial-setup-form.php
33 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( 'The administrator of this site has asked that you enable 2-factor authentication. To do that, install the Google Authenticator app and scan the QR code below to add a token for this website.', 'sg-security' ); ?></p> |
| 11 | |
| 12 | <?php include_once SG_Security\DIR . '/templates/partials/2fa-qr-secret.php'; ?> |
| 13 | |
| 14 | <p> |
| 15 | <br /> |
| 16 | <label for="sgc2facode"><?php esc_html_e( 'Authentication Code:', 'sg-security' ); ?></label> |
| 17 | <input name="sgc2facode" id="sgc2facode" class="input" value="" size="20" pattern="[0-9]*" autofocus /> |
| 18 | </p> |
| 19 | |
| 20 | <?php if ( $args['interim_login'] ) : ?> |
| 21 | <input type="hidden" name="interim-login" value="1" /> |
| 22 | <?php else : ?> |
| 23 | <input type="hidden" name="redirect_to" value="<?php echo esc_url( $args['redirect_to'] ); ?>" /> |
| 24 | <?php endif; ?> |
| 25 | <input type="hidden" name="rememberme" id="rememberme" value="<?php echo esc_html( $args['rememberme'] ); ?>" /> |
| 26 | <input name="do_not_challenge" type="checkbox" id="do_not_challenge" /> |
| 27 | <label for="do_not_challenge"><?php esc_html_e( 'Do not challenge me for the next 30 days.', 'sg-security' ); ?></label> |
| 28 | <p> |
| 29 | <br /> |
| 30 | <?php submit_button( __( 'Authenticate', 'sg-security' ) ); ?> |
| 31 | </p> |
| 32 | </form> |
| 33 |