Info
- 5 posts
- 3 voices
- Started 3 years ago by ganzua
- Latest reply from Ipstenu
- This topic is not resolved
Sanitizing user names
-
- Posted 3 years ago #
Hi!
I have an old issue with bbpress-wppress integration that I can't solve.
I use this wp-plugin to sanitize user names;
http://n0tablog.wordpress.com/my-wordpress-plug-ins/insensitive/
What this plugin does is that whenever a user registered as "Joe" tries to log in as "joe", "jOe"... can login.
However bbpress is not compatible with this plugin, when activited bbpress reports this error;
Catchable fatal error: Object of class stdClass could not be converted to string in D:\wamp\www\wordpress\wp-includes\formatting.php on line 453In formatting.php line 453 obviously we have wordpress function sanitize_user and it seems bbpress doesn't like to have this function modified.
I just wanted to ask if anybody knows another way to sanitize usernames because it is a pain to have all the time people complainig that they can log in because they registered as "Joe" and try to access with "joe" :-)
-
- Posted 3 years ago #
I'm looking at trying this with http://www.theblog.ca/wordpress-case-insensitive-login but ... yeah, can we sanitize for bbpress too?
-
- Posted 3 years ago #
The sanitize_user() function is the same in bbPress as it is in WordPress. Even the filter names are the same. Still, WordPress plugins don't generally work in bbPress without some modification.
-
- Posted 3 years ago #
Hey Ipstenu,
The plugin you suggested seems to work after a wp-bbpress integration! thanks a lot :)
In my case, I'm forcing registration and login through wp. I tried registration through bbpress before, and I think you run into a lot of problems.
The sanitize_user() function is the same in bbPress as it is in WordPress. Even the filter names are the same. Still, WordPress plugins don't generally work in bbPress without some modification.
If it is the same function, in my opinion this feature should be in the core of both, wb and bbpress. It has no sense to allow double registrations like "John" and "john", don't you think so?
-
- Posted 3 years ago #
I'm on WP 2.7/BB 1.0a5trunk, so sending everyone to login/register through WP won't work for me. Yet.
I'll have to read up on how wp_authenticate translates to the BB world to have a go at.
-
You must log in to post.