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;
    }