• Resolved jlstysis

    (@jlstysis)


    1. New user is created during checkout
    2. User gets a link in email to set their password
    3. User follows link and sets new password
    4. User is taken to the login page with message “Your password has been reset successfully.”
    5. User enters email and password, clicks “Login” – nothing happens. The password field is cleared and no errors of any kind are displayed.
    6. User enters email and same password again – login successful.

    This is consistent with every new account. All subsequent login attempts are fine. Logins after “forgot password” reset are also fine.
    The issue is only with the very first login for a new account.

    If an account is registered though WordPress, then first login through WooCommerce is successful.
    It appears that this only affects accounts created during WooCommerce checkout.

    WordPress 6.0.1. All plugins except woocommerce disabled. Storefront theme.No custom CSS, no custom PHP.

    • This topic was modified 2 years, 4 months ago by jlstysis.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @jlstysis,

    Thanks for the detailed explanation of what happens with the first login of new customers after they’ve changed the password.

    I’ve been able to reproduce this on one of my test sites. I think this happens because the customer is already logged in so on the first attempt WooCommerce logs the customer out and then logs them back in.

    If you copy the password reset link and paste it into another browser you’ll see that the customer is logged in at the first attempt.

    Having said that, I believe there should be at least a message box that informs the customers they’ve been logged out on their first login attempt. Can I ask you to report this inconsistency in the WooCommerce Github repository? You can do so by opening a new issue here:

    https://github.com/woocommerce/woocommerce/issues/new/choose

    Thanks!

    Thread Starter jlstysis

    (@jlstysis)

    Yes, you are correct. If the user logs out before setting the password, then the first login works fine. So I think woocommerce just needs to somehow improve the user experience, because all new users will be logged in once they create an account during checkout. Then they’ll get the email, click on the link, and be taken to the site where they’re already logged in. May be the password reset page can automatically terminate the current logged in session?

    Hi @jlstysis

    Thank you for getting back to us!

    May be the password reset page can automatically terminate the current logged in session?

    You can definitely mention that on GitHub and you will be notified when there are any updates.

    I’ll go ahead and mark this thread as resolved for now. If you have further questions, feel free to start a new topic!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘First Login for New User Always Fails With No Error Messages’ is closed to new replies.