Re: another type of login problem
It’s the space.
Try this plugin:
<?php
/*
Plugin Name: Allow spaces in user names
Plugin URI: https://bbpress.org/forums/topic/99
*/
function wpbb_user_sanitize( $text, $raw, $strict ) {
$username = strip_tags($raw);
// Kill octets
$username = preg_replace(‘|%([a-fA-F0-9][a-fA-F0-9])|’, ”, $username);
$username = preg_replace(‘/&.+?;/’, ”, $username); // Kill entities
// If strict, reduce to ASCII for max portability.
if ( $strict )
$username = preg_replace(‘|[^a-z0-9 _.-@]|i’, ”, $username);
return $username;
}
add_filter( ‘user_sanitize’, ‘wpbb_user_sanitize’, -1, 3);
?>