• Resolved chibilovespurple

    (@chibilovespurple)


    Hello WooCommerce team,

    Recently (not sure if from the latest WooCommerce update or earlier), I noticed an issue with automatically generated usernames when customers create an account during checkout.

    • When WooCommerce auto-creates the account (based on name/email at checkout), the username is generated with a dot (.) or similar.
    • Later, when I go to WordPress backend → Users → Edit user → Change password, it always shows the error message:

    “This username is not allowed. Only ‘a-z’, ‘0-9’, ‘-’, ‘_’, and ‘.’ are permitted.”

    • However, if I manually create a user from the backend with the exact same username (including dot), there is no problem at all. The account works normally, and I can change the password without error.

    This looks like WooCommerce’s account auto-generation logic is producing usernames that are technically valid, but not passing the validation check in the backend when editing.

    I have attached screenshots to show: A user auto-created during checkout (fails when editing password): https://drive.google.com/drive/folders/1BC_ozxv9qBIEEiSDysiyPfZRshfBLErl?usp=sharing

    Steps to Reproduce:

    1. Go to WooCommerce → Settings → Accounts & Privacy, enable “Allow customers to create an account during checkout.”
    2. Go to checkout, enter name and email → let WooCommerce auto-generate the account.
    3. After order is placed, go to WordPress Admin → Users → Edit that user.
    4. Try to change the password and save → error appears: “This username is not allowed. Only ‘a-z’, ‘0-9’, ‘-’, ‘_’, and ‘.’ are permitted.”

    Expected behavior:

    • Username generated by WooCommerce should fully comply with WordPress username rules, and backend should allow password change without errors.

    Actual behavior:

    • WooCommerce generates usernames that appear valid but are rejected in backend user profile editing.

    Steps to Reproduce:

    1. Go to WooCommerce → Settings → Accounts & Privacy, enable “Allow customers to create an account during checkout.”
    2. Go to checkout, enter name and email → let WooCommerce auto-generate the account.
    3. After order is placed, go to WordPress Admin → Users → Edit that user.
    4. Try to change the password and save → error appears: “This username is not allowed. Only ‘a-z’, ‘0-9’, ‘-’, ‘_’, and ‘.’ are permitted.”

    Expected behavior:

    • Username generated by WooCommerce should fully comply with WordPress username rules, and backend should allow password change without errors.

    Actual behavior:

    • WooCommerce generates usernames that appear valid but are rejected in backend user profile editing.

    Could you please check if this is a bug in WooCommerce’s user creation/validation process?

    Thank you for your help!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @chibilovespurple,

    Thank you for reaching out and for providing such a detailed explanation of the issue and how to reproduce it. I know how frustrating and overwhelming problems like this can be.

    I tested this on my end by creating a new user through checkout and then updating the password from the admin side. Everything worked as expected, which suggests the issue isn’t general but rather specific to your setup.

    To help us better understand your setup, could you please share your system status report? You can find it under WooCommerce > Status > Get system report > Copy for support. Then, paste the report into Pastebin and share the link here.

    Thread Starter chibilovespurple

    (@chibilovespurple)

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for sharing the video and the system status report. I’ve checked the video and tried to replicate the issue on my test site, but everything appears to be working fine on my end. It seems there might be a plugin or custom code on your site causing the issue.

    For testing purposes, could you please create a staging site, deactivate all plugins except WooCommerce, and try again? Let us know if you still experience the same issue.

    You can use the following plugin to create a staging site: WP Staging

    Let us know what you find.

    Thread Starter chibilovespurple

    (@chibilovespurple)

    Hi Shahzeen,

    Thanks for your support. I’ve created a staging site and tested with all plugins disabled except WooCommerce. The issue does not appear in that setup.

    After further testing, I confirmed the conflict is with BuddyBoss – when BuddyBoss is active, WooCommerce auto-generated usernames trigger the backend error when changing passwords.

    I’ll follow up with BuddyBoss support for a fix on their side.

    Thanks again for pointing me in the right direction!

    —Trang

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    It’s great that you were able to identify the conflict with BuddyBoss. Reaching out to their support team is definitely the right next step, as they’ll be best placed to address the issue on their side.

    If you’re happy with the support you received today, would you consider leaving us a quick review? It really helps us out: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/#new-post

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Issue with auto-generated usernames causing backend error when changing password’ is closed to new replies.