Are you creating your users via regular means or somehow importing them?
Trying to create such user WP prevents me from doing so:
ERROR: This username is invalid because it uses illegal characters. Please enter a valid username.
The reason for that is that username is validated with validate_username()
, which runs sanitize_user()
in strict mode. That reduces available characters to basic ASCII set.
In a nutshell WP doesn’t consider that a valid username.
So the question is — is that actually a username in your case? Your users might be confusing Username with First/Last name fields, which are not used for login.
If you do want to support usernames like that you will have to override WP validation via hooks. That would probably take some serious testing to make sure it works properly and doesn’t introduce security issues.
Related Posts:
- Adding “Remember Me” in custom login
- How build a custom login/register form with error handling?
- Wp-login appears White Screen, Error: Cannot modify header information
- Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
- Infinite loop when logging out using custom login form
- How to change the wp-login.php page title?
- Change the footer text on the login page
- Changing user_nicename
- How to redirect users to custom lostpassword page?
- How to place login logout link on menu that redirects users back to current page?
- How to turn off redirection from ‘domain.com/login’ to ‘domain.com/wp-login.php’
- How to resolve error “Cookies are blocked due to unexpected output.”?
- Using a nonce in a Custom Login Form
- Constructing a custom login form using ajax
- automated tests as a user?
- Remove “Remember Me” from login form
- Remove username in emails or swap username for email
- woocommerce and is_user_logged_in() if not redirect to homepage
- Check if user is logged in when clicking certain links on certain pages
- PHP If user is logged in & on home page redirect
- WordPress shows registration link for non logged users
- Creating login session via CURL
- Change WordPress default registration error text [Error: This username is invalid because it uses illegal characters. Please enter a valid username.]
- Admin username and password
- Customize Plugin
- Recovering WP Login Credintials in Code?
- Is it necessary to sanitize wp_set_password user input?
- Anyway to output the registration form like the login form with wp_login_form()?
- WordPress custom login form using Ajax
- How to give new users two specific user role options upon WordPress user registration
- Overriding WP login credentials
- How to: PHP Log Out Link?
- Login/logout in header
- Why is my cookie not unsetting upon logout? [closed]
- User management system similar to wordpress one?
- Programmatic Login from 3rd Party site
- Cannot access wp-admin/wp-login.php (WordPress backend) anymore, what could be wrong?
- How to debug my custom login form looping intermittently
- getting logged in user info (wp-load.php) from parent directory
- Problem with login form
- Login to wordpress by clicking a link and specifying usernaname and password in url
- Log in / Log Out Custom Button
- Should `wp_login` be used since it’s deprecated?
- How to redirect users based on role and content of redirect_to?
- Change CSS based on is_user_logged_in
- How to display login form anywhere, when user isn’t logged in, without redirecting?
- How can I open up my administrative panel to everyone?
- how to prevent wordpress admin from logging in via woocommerce my-account page
- How to hook a logout funtion for specific usr role in wordpress?
- How can I add a new row in a separate database when someone registers via WordPress?
- How do I create a function that modifies a message in the wp-login.php file?
- One account with multiple logins
- Lost in trying to create user database system
- Shortcode to log user into current URL
- PHP getting error when trying to access WP-Admin Dashboard
- I installed WordPress locally now how do I login?
- If user is logged in not working
- Change homepage content if user is logged in – BuddyPress
- Show login greeting above sub-menu links?
- is_user_logged_in returning nothing on custom page
- Help with accessing wp-admin page and resolving error messages
- Can’t log in to WordPress wp-admin after adding code to functions.php
- Custom Login page, redirection and restrictions
- Check if user had autologin & if so, logout
- Admin Panel 404 Error after login
- PHP warning – Use of undefined constant ‘FORCE_SSL_LOGIN’ ‘FORCE_SSL_ADMIN’ on wp-config.php
- How to block specific user id in custom login form?
- Log out without confirmation request (nonce)
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Call WP Rest-Api to GET /users/me returned NOTHING in console
- Restrict wordpress access to logged users only
- Menu not updating for logged in users after redirect
- how to use auth_redirect() redirect visitor to login page if they are not login when they click account and order page?
- Display specific page if user signed in
- Change Login or Logout text based on status
- Refresh page after login with litespeed cache
- Redirect after login depending on the URL
- Need help with AJAX login to call php in functions.php to handle redirects based on user cap (role)
- Redirecting the lost password page request when using a custon login page
- How do I send a POST request with params with WordPress REST API
- wp-login.php?redirect_to=https problem
- is_user_logged_in() not working in homepage
- Check if a user is logged into my WordPress site which is on a different server
- Newbie question. Login/Registration. New PHP page
- Adding a sidebar to wp-login.php
- List users in a dropdown for login
- special characters not supporting in wordpress
- Not logged in when using http
- add bootstrap modal after login in wordpress
- White screen after login attempt
- Redirect users not logged in to the standard login page (and back) from some posts and pages
- How to replace wp-admin login page to another location?
- Check user last login date
- Prevent users from display default wordpress login form
- login redirect based on user role not work as expected
- How to hide header and footer from page template
- How to change wp-admin and wp-login urls
- How do I do so that people can register on my wordpress site?
- How do you create a front end form that enables the editing of member-specific custom fields in WordPress?
- I can’t log into my website , it says “Error: Cookies are blocked due to unexpected output”