When new passwords are generated for new users, some users are reporting that the passwords include spaces at the beginning and end of the passwords. Has anyone ran into this before or have any idea why this would be happening? What are the potential problems with this, and how can they be avoided?
Leave a Reply
You must be logged in to post a comment.
If
wp_generate_password()
was called with the third parameter$extra_special_chars = true
a space might be part of the password:There are three other possibilities how spaces can find a way into passwords:
Search all installed plugins for password. Ask your users what email client they are using. To prevent spaces before or after WP generated passwords add a filter:
Note that WordPress does not send passwords with spaces to users by default. There is probably some other code involved.