PluginProbe ʕ •ᴥ•ʔ
WP 2FA – Two-factor authentication for WordPress / 4.0.0
WP 2FA – Two-factor authentication for WordPress v4.0.0
4.0.0 1.7.1 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.8.0 2.9.0 2.9.1 2.9.2 2.9.3 3.0.0 3.0.1 3.1.0 3.1.1 3.1.1.2 trunk 1.2.0 1.3.0 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.7.0
wp-2fa / templates / profile / confirm-dialogs.php
wp-2fa / templates / profile Last commit date
admin-actions.php 5 days ago backup-codes-dialog.php 5 days ago card-backup.php 5 days ago card-setup.php 5 days ago confirm-dialogs.php 5 days ago index.php 5 days ago main.php 5 days ago summary.php 5 days ago totp-details.php 5 days ago
confirm-dialogs.php
62 lines
1 <?php
2 /**
3 * Profile section: Confirmation dialogs.
4 *
5 * Inline modal dialogs for destructive actions (remove 2FA, temp remove).
6 *
7 * @var array $data Template data from the renderer.
8 *
9 * @package wp2fa
10 * @since 4.0.0
11 */
12
13 defined( 'ABSPATH' ) || exit;
14 ?>
15 <?php if ( ! empty( $data['setup_card_data']['show_remove_btn'] ) ) : ?>
16 <div class="wp2fa-profile__confirm-overlay" id="wp2fa-confirm-remove-2fa" role="dialog" aria-modal="true" aria-labelledby="wp2fa-confirm-remove-title">
17 <div class="wp2fa-profile__confirm-dialog">
18 <div class="wp2fa-profile__confirm-icon">
19 <svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
20 <circle cx="28" cy="28" r="28" fill="#FFF3E0"/>
21 <path d="M28 18l11 20H17l11-20z" stroke="#8B6914" stroke-width="2" stroke-linejoin="round" fill="none"/>
22 <line x1="28" y1="26" x2="28" y2="32" stroke="#8B6914" stroke-width="2" stroke-linecap="round"/>
23 <circle cx="28" cy="35" r="1" fill="#8B6914"/>
24 </svg>
25 </div>
26 <h3 id="wp2fa-confirm-remove-title"><?php \esc_html_e( 'Remove 2FA?', 'wp-2fa' ); ?></h3>
27 <p><?php \esc_html_e( 'Are you sure you want to remove Two Factor Authentication and lower the security of your account?', 'wp-2fa' ); ?></p>
28 <div class="wp2fa-profile__confirm-buttons wp2fa-profile__confirm-buttons--stacked">
29 <a href="#"
30 class="wp2fa-profile__btn wp2fa-profile__btn--primary"
31 data-wp2fa-remove-2fa
32 data-user-id="<?php echo \esc_attr( (string) $data['user_id'] ); ?>"
33 data-nonce="<?php echo \esc_attr( \wp_create_nonce( 'wp-2fa-remove-user-2fa-nonce' ) ); ?>">
34 <?php \esc_html_e( 'Yes, Remove', 'wp-2fa' ); ?>
35 </a>
36 <a href="#" class="wp2fa-profile__confirm-cancel-link" data-wp2fa-confirm-close>
37 <?php \esc_html_e( 'No, Cancel', 'wp-2fa' ); ?>
38 </a>
39 </div>
40 </div>
41 </div>
42 <?php endif; ?>
43
44 <?php if ( ! empty( $data['admin_actions_data']['temp_remove_url'] ) ) : ?>
45 <div class="wp2fa-profile__confirm-overlay" id="wp2fa-confirm-temp-remove" role="dialog" aria-modal="true" aria-labelledby="wp2fa-confirm-temp-title">
46 <div class="wp2fa-profile__confirm-dialog">
47 <h3 id="wp2fa-confirm-temp-title"><?php \esc_html_e( 'Confirm temporary 2FA removal of the user', 'wp-2fa' ); ?></h3>
48 <p><?php \esc_html_e( 'Are you sure you want to enable temporary login without 2FA for the user?', 'wp-2fa' ); ?></p>
49 <div class="wp2fa-profile__confirm-buttons">
50 <a href="<?php echo \esc_url( $data['admin_actions_data']['temp_remove_url'] ); ?>"
51 class="wp2fa-profile__btn wp2fa-profile__btn--primary"
52 id="wp2fa-confirm-temp-yes">
53 <?php \esc_html_e( 'OK', 'wp-2fa' ); ?>
54 </a>
55 <button type="button" class="wp2fa-profile__btn wp2fa-profile__btn--secondary" data-wp2fa-confirm-close>
56 <?php \esc_html_e( 'Cancel', 'wp-2fa' ); ?>
57 </button>
58 </div>
59 </div>
60 </div>
61 <?php endif; ?>
62