# bbp-core/2.4.3/templates/form-user-passwords.php

Forumax – AI Powered Advanced Community Forum Plugin, version 2.4.3. 58 lines.

- Page: https://pluginprobe.com/plugins/bbp-core/2.4.3/code/templates/form-user-passwords.php
- Raw: https://pluginprobe.com/plugins/bbp-core/2.4.3/raw/templates/form-user-passwords.php
- Modified: 2026-01-28T15:54:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bbp-core/2.4.3/code/templates/form-user-passwords.php#L10-L20`.

```php
<?php

/**
 * User Password Generator
 *
 * @package bbPress
 * @subpackage Theme
 */

// Exit if accessed directly
defined( 'ABSPATH' ) || exit;

// Filters the display of the password fields
if ( apply_filters( 'show_password_fields', true, bbpress()->displayed_user ) ) : ?>

<div id="password" class="user-pass1-wrap">

    <div class="user-generate-password">
        <label for="user_login"><?php esc_html_e( 'Password', 'forumax' ); ?></label>
        <button type="button" class="button wp-generate-pw hide-if-no-js"><?php esc_html_e( 'Generate Password', 'forumax' ); ?></button>

        <span class="bbp-form password wp-pwd hide-if-js">
            <button type="button" class="button wp-cancel-pw" data-bs-toggle="0" aria-label="<?php esc_attr_e( 'Cancel password change', 'forumax' ); ?>">
                <span class="dashicons dashicons-no"></span>
                <span class="text"><?php esc_html_e( 'Cancel', 'forumax' ); ?></span>
            </button>
        </span>
    </div>
    
	<fieldset class="bbp-form password wp-pwd hide-if-js">

        <span class="password-input-wrapper">

            <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" />

            <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' ); ?>">
                <span class="dashicons dashicons-hidden"></span>
            </button>

		</span>

		<div style="display:none" id="pass-strength-result" aria-live="polite"></div>
	</fieldset>
</div>

<div class="user-pass2-wrap hide-if-js">
	<label for="pass2"><?php esc_html_e( 'Repeat New Password', 'forumax' ); ?></label>
	<input name="pass2" type="password" id="pass2" class="regular-text" value="" autocomplete="off" />
	<p class="description"><?php esc_html_e( 'Type your new password again.', 'forumax' ); ?></p>
</div>

<div class="pw-weak">
	<label for="pw_weak"><?php esc_html_e( 'Confirm', 'forumax' ); ?></label>
	<input id="pw_weak" type="checkbox" name="pw_weak" class="pw-checkbox checkbox form-check-input" />
	<p class="description indicator-hint alert-info alert"> <?php echo wp_get_password_hint(); ?> </p>
</div>

<?php endif;
```
