Skip to content

Fix #9775 - Replace misleading 'Password: [entered on site]' text with lost password link - #9835

Open
ikamal7 wants to merge 1 commit into
awesomemotive:mainfrom
ikamal7:fix/9775-new-user-email-password-text
Open

Fix #9775 - Replace misleading 'Password: [entered on site]' text with lost password link#9835
ikamal7 wants to merge 1 commit into
awesomemotive:mainfrom
ikamal7:fix/9775-new-user-email-password-text

Conversation

@ikamal7

@ikamal7 ikamal7 commented Jul 21, 2026

Copy link
Copy Markdown

Description

Fixes #9775

When the "Automatically register new user accounts" setting is enabled, users are registered during checkout without entering a password. However, the New User Registration email displayed:

Password: [entered on site]

This was misleading because no password was entered — it was auto-generated.

Changes

Replaced the static "Password: [entered on site]" text with a helpful link to WordPress's lost password page (wp_lostpassword_url()), guiding users to set their own password. The fix handles both HTML and plain text email modes:

  • HTML mode: Renders a "Set your password" anchor link
  • Plain text mode: Renders "To set your password, visit: {url}"

Testing

  1. Enable "Automatically register new user accounts" in Downloads > Settings > Payments > Checkout
  2. Complete a checkout as a new user
  3. The New User Registration email should show "Set your password" / "To set your password, visit: ..." instead of "Password: [entered on site]"

…te]' text with lost password link

When 'Automatically register new user accounts' is enabled, the New User
Registration email displayed 'Password: [entered on site]' even though
the user never entered a password — it was auto-generated.

This replaces the misleading static text with a link to WordPress's
lost password page (wp_lostpassword_url()), guiding users to set their
password. Works for both HTML and plain text email modes.

Fixes awesomemotive#9775
@ikamal7
ikamal7 marked this pull request as ready for review July 21, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Automatically register new user accounts" + password

1 participant