Remove plaintext passwords from multisite activation flow#922
Merged
mikelittle merged 1 commit intomasterfrom Mar 4, 2026
Merged
Remove plaintext passwords from multisite activation flow#922mikelittle merged 1 commit intomasterfrom
mikelittle merged 1 commit intomasterfrom
Conversation
After account activation, redirect users to the password reset page instead of displaying the plaintext password on wp-activate.php. Replace plaintext passwords in welcome emails with a message directing users to set their password via the login page. - humanmade/product-dev#2009 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
|
Successfully created backport PR for |
|
Successfully created backport PR for |
|
Successfully created backport PR for |
|
Successfully created backport PR for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.






Summary
wp-activate.phpFixes https://github.com/humanmade/product-dev/issues/2009
Changes
All changes in
inc/signup_notification/namespace.php:bootstrap()— Register two new hooks at priority 20 onwpmu_activate_userandwpmu_activate_blogto redirect after welcome emails fire at priority 10altis_welcome_notification()— ReplacePASSWORDplaceholder with a message instead of the actual passwordaltis_welcome_user_notification()— Same change as aboveredirect_to_password_reset()— New function for user-only activations. Generates a reset key, invalidates signups cache, and redirects towp-login.php?action=rpredirect_blog_user_to_password_reset()— New function for blog activations. Same approach, usingnetwork_site_url()for the login URL to avoidwp_safe_redirect()rejecting cross-host subdomain redirectsTest plan
🤖 Generated with Claude Code