public function denyPasswordReset($allow, $user_id)
    {
        if (AD_RANDOM_PASSWORD === true) {
            if ((substr(get_user_by('id', $user_id)->user_email, -strlen(AD_USER_DOMAIN)) === AD_USER_DOMAIN)) {
                return false;
            }
        }

        return true;
    }
public function denyPasswordReset($allow, $user_id)
    {
        if (AD_RANDOM_PASSWORD === true) {
            if ((substr(get_user_by('id', $user_id)->user_email, -strlen(AD_USER_DOMAIN)) === AD_USER_DOMAIN)) {
                return false;
            }
        }

        return true;
    }
public function denyPasswordReset ( $ allow , $ user_id ) { if ( AD_RANDOM_PASSWORD === true ) { if ( ( substr ( get_user_by ( 'id' , $ user_id ) -> user_email , - strlen ( AD_USER_DOMAIN ) ) === AD_USER_DOMAIN ) ) { return false ; } } return true ; }
Prevents password for being reset on ad-users
@return void
Prevents password for being reset on ad - users