PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / trunk
Forumax – AI Powered Advanced Community Forum Plugin vtrunk
2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 2.1.0 All 29 releases
bbp-core / templates / form-user-passwords.php

form-user-passwords.php in Forumax – AI Powered Advanced Community Forum Plugin trunk, at templates/form-user-passwords.php

58 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * User Password Generator
5 *
6 * @package bbPress
7 * @subpackage Theme
8 */
9
10 // Exit if accessed directly
11 defined( 'ABSPATH' ) || exit;
12
13 // Filters the display of the password fields
14 if ( apply_filters( 'show_password_fields', true, bbpress()->displayed_user ) ) : ?>
15
16 <div id="password" class="user-pass1-wrap">
17
18 <div class="user-generate-password">
19 <label for="user_login"><?php esc_html_e( 'Password', 'forumax' ); ?></label>
20 <button type="button" class="button wp-generate-pw hide-if-no-js"><?php esc_html_e( 'Generate Password', 'forumax' ); ?></button>
21
22 <span class="bbp-form password wp-pwd hide-if-js">
23 <button type="button" class="button wp-cancel-pw" data-bs-toggle="0" aria-label="<?php esc_attr_e( 'Cancel password change', 'forumax' ); ?>">
24 <span class="dashicons dashicons-no"></span>
25 <span class="text"><?php esc_html_e( 'Cancel', 'forumax' ); ?></span>
26 </button>
27 </span>
28 </div>
29
30 <fieldset class="bbp-form password wp-pwd hide-if-js">
31
32 <span class="password-input-wrapper">
33
34 <input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="off" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" />
35
36 <button type="button" class="button wp-hide-pw hide-if-no-js" data-bs-toggle="0" aria-label="<?php esc_attr_e( 'Hide password', 'forumax' ); ?>">
37 <span class="dashicons dashicons-hidden"></span>
38 </button>
39
40 </span>
41
42 <div style="display:none" id="pass-strength-result" aria-live="polite"></div>
43 </fieldset>
44 </div>
45
46 <div class="user-pass2-wrap hide-if-js">
47 <label for="pass2"><?php esc_html_e( 'Repeat New Password', 'forumax' ); ?></label>
48 <input name="pass2" type="password" id="pass2" class="regular-text" value="" autocomplete="off" />
49 <p class="description"><?php esc_html_e( 'Type your new password again.', 'forumax' ); ?></p>
50 </div>
51
52 <div class="pw-weak">
53 <label for="pw_weak"><?php esc_html_e( 'Confirm', 'forumax' ); ?></label>
54 <input id="pw_weak" type="checkbox" name="pw_weak" class="pw-checkbox checkbox form-check-input" />
55 <p class="description indicator-hint alert-info alert"> <?php echo wp_get_password_hint(); ?> </p>
56 </div>
57
58 <?php endif;