andreyguild
Forum Replies Created
-
Forum: Plugins
In reply to: [WP w3all phpBB] FATAL Error on first attempt to loginhttps://codex.wordpress.org/Function_Reference/sanitize_user
instead of your custom code
preg_match(‘/[^-0-9A-Za-z _.@] and so onThe trick I’ve used to create a user is as follows:
‘user_nicename’ => ‘tmp’.round(microtime(true))This way user always gets created and then populated with correct values with:
$wpdb->query(“UPDATE $wpu_db_utab SET user_loginForum: Plugins
In reply to: [WP w3all phpBB] FATAL Error on first attempt to loginUser gets created successfully after couple of refreshes.
For it to work I disabled sensitizing in w3all (both username and topic)
And for it to work I’ve also added random nicename when you create user and then real nice name is set with direct SQL updateWhy don’t you use standard sensitize functions?
Forum: Plugins
In reply to: [WP w3all phpBB] Special Chars in UsernamesCan you please show how nicename is set in the process of user creation by w3all
I just want to set is as username without alterations and it would be nice to use it a display name tooForum: Plugins
In reply to: [WP w3all phpBB] Special Chars in UsernamesAtm I think that the problem is in nicename
I’ve disableI’m not sure where its been set
Forum: Plugins
In reply to: [WP w3all phpBB] Special Chars in UsernamesThnx for all your good work.
Some WP plugins, like Allow Cyrillic Usernames enable additional chars to be used in username.
What they do is add filter on the sanitize_user hook and add more chars.As far as I can see, in the fix you enforce those chars, so even less ppl can SSO now:)
That’s for the default WP install, but not WP with plugins, or am I wrong?Btw, you sanitize_user with strict = false and WP does it with strict = true AFAIK.
I think even changing username to something like user13223 is better not logging them in.