-
Notifications
You must be signed in to change notification settings - Fork 812
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
Account Protection: Update password detection flow #41365
Account Protection: Update password detection flow #41365
Conversation
…add/protect/account-protection-settings
…add/protect/account-protection-settings
…add/protect/account-protection-settings
projects/packages/account-protection/src/class-validation-service.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except for the blog URL in the email, I think most of these points are just some small stuff suggestions. Nice work!
projects/packages/account-protection/src/class-email-service.php
Outdated
Show resolved
Hide resolved
projects/packages/account-protection/src/class-email-service.php
Outdated
Show resolved
Hide resolved
projects/packages/account-protection/src/class-email-service.php
Outdated
Show resolved
Hide resolved
projects/packages/account-protection/src/class-email-service.php
Outdated
Show resolved
Hide resolved
projects/packages/account-protection/src/class-email-service.php
Outdated
Show resolved
Hide resolved
projects/packages/account-protection/src/class-password-detection.php
Outdated
Show resolved
Hide resolved
projects/packages/account-protection/src/class-password-detection.php
Outdated
Show resolved
Hide resolved
projects/packages/account-protection/src/class-password-detection.php
Outdated
Show resolved
Hide resolved
projects/packages/account-protection/src/class-password-detection.php
Outdated
Show resolved
Hide resolved
projects/packages/account-protection/src/class-password-detection.php
Outdated
Show resolved
Hide resolved
…otection-password-detection-flow
@ArSn Regarding this comment, I made an attempt to correct this only to recall why I set it that way originally - the static analysis check returns an error when I use a |
projects/packages/account-protection/src/class-email-service.php
Outdated
Show resolved
Hide resolved
projects/packages/account-protection/src/class-validation-service.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well. 👍🏻
Two things of note:
- There is no "visual confirmation" when resending the 2FA mail, this may be confusing to users (showing a message that it was resent when it was might be wise)
- I don't think we're recommending the user to update the password anywhere in this flow right now (not sure if we have it planned in a different PR?)
Both are not blocking for this PR though.
* Add Account Protection toggle to Jetpack security settings * Import package and run activation/deactivation on module toggle * changelog * Add Protect Settings page and hook up Account Protection toggle * changelog * Update changelog * Register modules on plugin activation * Ensure package is initialized on plugin activation * Make account protection class init static * Add auth hooks, redirect and a custom login action template * Reorg, add Password_Detection class * Remove user cxn req and banner * Do not enabled module by default * Add strict mode option and settings toggle * changelog * Add strict mode toggle * Add strict mode toggle and endpoints * Reorg and add kill switch and is supported check * Add testing infrastructure * Add email handlings, resend AJAX action, and attempt limitations * Add nonces, checks and template error handling * Use method over template to avoid lint errors * Improve render_password_detection_template, update SVG file ext * Remove template file and include * Prep for validation endpoints * Update classes to be dynamic * Add constructors * Reorg user meta methods * Add type declarations and hinting * Simplify method naming * Use dynamic classes * Update class dependencies * Fix copy * Revert unrelated changes * Revert unrelated changes * Fix method calls * Do not activate by default * Fix phan errors * Changelog * Update composer deps * Update lock files, add constructor method * Fix php warning * Update lock file * Changelog * Fix Password_Detection constructor * Changelog * More changelogs * Remove comments * Fix static analysis errors * Remove top level phpunit.xml.dist * Remove never return type * Revert tests dir changes in favour of a dedicated task * Add tests dir * Reapply default test infrastructure * Reorg and rename * Update @Package * Use never phpdoc return type as per static analysis error * Enable module by default * Enable module by default * Remove all reference to and functionality of strict mode * Remove unneeded strict mode code, update Protect settings UI * Updates/fixes * Fix import * Update placeholder content * Revert unrelated changes * Remove missed code * Update reset email to two factor auth email * Updates and improvements * Reorg * Optimizations and reorganizations * Hook up email service * Update error handling todos, fix weak password check * Test * Localize text content * Fix lint warnings/errors * Update todos * Add error handling, enforce input restrictions * Move main constants back entry file * Fix package version check * Optimize setting error transient * Add nonce check for resend email action * Fix spacing * Fix resend nonce handling * Email service fixes * Fixes, improvements to doc consistency * Fix phan errors * Revert prior change * Send auth code via wpcom only * Update method name
Description
Updates the password detection flow to accomodate change to scope
TODOs:
Proposed changes:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
wp-login.php
form an attempt to log inwp-login.php?action=password-detection
and that the initial state of the page is styled as per designs and you are presented relevant details and optionsResend email
action sends an additional email, and enforces a limit of 3 attemptswp_mail()
and WPcom server)Screenshot