backup-codes-display.php
1 week ago
backup-codes-generate.php
1 week ago
backup-method-footer.php
1 week ago
backup-method-selection.php
1 week ago
completion.php
1 week ago
confirm-close.php
1 week ago
email-setup.php
1 week ago
email-verify.php
1 week ago
index.php
1 week ago
method-selection.php
1 week ago
modal.php
1 week ago
required-intro.php
1 week ago
totp-setup.php
1 week ago
totp-verify.php
1 week ago
welcome.php
1 week ago
totp-verify.php
46 lines
| 1 | <?php |
| 2 | /** |
| 3 | * WP 2FA Wizard Template: TOTP Verify |
| 4 | * |
| 5 | * Contains two template IDs: |
| 6 | * - wp2fa-totp-verify — Verification code input form. |
| 7 | * - wp2fa-totp-verify-footer — Footer buttons for the verify step. |
| 8 | * |
| 9 | * tmpl-wp2fa-totp-verify data: |
| 10 | * - description {string} Introductory text for the verify step. |
| 11 | * - codeLabel {string} Label for the code input. |
| 12 | * - placeholder {string} Placeholder text (e.g. '000000'). |
| 13 | * |
| 14 | * tmpl-wp2fa-totp-verify-footer data: |
| 15 | * - goBackLabel {string} "Go back" button text. |
| 16 | * - validateLabel {string} "Validate & Save" button text. |
| 17 | * |
| 18 | * @package wp2fa |
| 19 | * @since 4.0.0 |
| 20 | */ |
| 21 | |
| 22 | defined( 'ABSPATH' ) || exit; |
| 23 | ?> |
| 24 | <script type="text/html" id="tmpl-wp2fa-totp-verify"> |
| 25 | <div class="wp2fa-totp-verify-wrapper" id="wp2fa-totp-verify-wrapper"> |
| 26 | <div class="wp2fa-totp-verify-description" id="wp2fa-totp-verify-description">{{{ data.description }}}</div> |
| 27 | <label for="wp2fa-totp-authcode">{{ data.codeLabel }}</label> |
| 28 | <input type="tel" class="wp2fa-totp-verify-input" id="wp2fa-totp-authcode" name="wp-2fa-totp-authcode" pattern="[0-9]*" autocomplete="off" placeholder="{{ data.placeholder }}" /> |
| 29 | <div class="wp2fa-wizard-verification-response" id="wp2fa-totp-verification-response"></div> |
| 30 | </div> |
| 31 | |
| 32 | <style> |
| 33 | #wp2fa-wizard-title { |
| 34 | display: none !important; |
| 35 | } |
| 36 | .wp2fa-setup-wizard-body { |
| 37 | margin-top: -44px !important; |
| 38 | } |
| 39 | </style> |
| 40 | </script> |
| 41 | |
| 42 | <script type="text/html" id="tmpl-wp2fa-totp-verify-footer"> |
| 43 | <button class="wp2fa-wizard-btn wp2fa-wizard-btn-secondary wp-2fa-button-secondary" id="wp2fa-totp-verify-btn-back" type="button">{{ data.goBackLabel }}</button> |
| 44 | <button class="wp2fa-wizard-btn wp2fa-wizard-btn-primary wp-2fa-button-primary" id="wp2fa-totp-btn-validate" type="button">{{ data.validateLabel }}</button> |
| 45 | </script> |
| 46 |