Whether to allow weak passwords on the change password and reset password pages.


You can set this to return true to allow weak passwords on the change password and reset password pages (not recommended). Note that at this time, weak passwords are still allowed on the checkout page no matter the value of this filter. We expect to change that in the future. For now, you can use our PMPro Strong Passwords plugin to force strong passwords at checkout.

/**
 * Filter to allow weak passwords on the 
 * change password and reset password forms.
 * At this time, this only disables the JS check on the frontend.
 * There is no backend check for weak passwords on those forms.
 * 
 * @since 2.3.3
 *
 * @see pmpro_enqueue_scripts
 *
 * @param bool $allow_weak_passwords Whether to allow weak passwords (default: false)
 *
 * @return bool true to allow weak passwords, false to not allow.
 */
$allow_weak_passwords = apply_filters( 'pmpro_allow_weak_passwords', false );

Parameters

$allow
bool

Return Value

true or false


Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/scripts.php

View in Source Code

Related Articles and Recipes

Allow Members to Create Weak Passwords During Reset or Profile Update By Kimberly Coleman