XF 2.2 Any way to bypass usernameValidation programmatically?

Andy R

Member
Licensed customer
Example:

Code:
        $user->email = $email;

        $user->username = $username;

        $user->save();

I want to bypass the option to check if the username has disallowed text, set in the options area. Any way to do this?
 
Back
Top Bottom