Password reset – Disabled for LDAP accounts
Code for checking and blocking LDAP users to reset password. /** * Checks whether a user is LDAP user and restricts to reset password. * * @param bool $allow Whether the password can be reset. * @param int $user_id The ID of the user. * @return bool|WP_Error */ function ldap_restrict_password_reset( $allow, $user_id ) { $user … Read more