New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug with space password #28774
Comments
Hi @khryshchuk Thank you for submitting the issue. However, you didn’t fill out the details of the bug report template that we ask for. Without these details, we can’t fully evaluate this issue. Please provide us with the information requested so we could take a look further. Describe the bug To Reproduce
Screenshots Expected behavior Isolating the problem (mark completed items with an [x]):
WordPress Environment
```
Copy and paste the system status report from **WooCommerce > System Status** in WordPress admin.
```
|
This error occurs on pure WordPress and WooCommerce. |
Hi @khryshchuk, Thank you for your follow-up on this issue! Our apologies for the delayed response. I believe passwords with spaces are not supported in WooCommerce. However, I'd like to further confirm it with the WooCommerce Core team. I am adding the Please note it may take a few days for them to get to this issue. Thank you for your patience. |
I was able to reproduce this. We do support logging in with a space-prefixed password, so this is indeed a bug. We likely just need to remove the trimming logic from the change password form. |
Although WordPress allows leading spaces in the password, it trims them before saving to the database. It also trims the password during authentication. WooCommerce should similarly trim the old password before verifying it during the reset process. |
Description: I can change my password with space (xxx123, where x = space), but then I can not change this password to another and I get the error "Your current password is incorrect.".
How to fix this bug Video Bug
The text was updated successfully, but these errors were encountered: