Account Protection locks users out of local WordPress Studio sites (Offline Mode)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 62/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- authentication, backend
Research direction
Start by tracing the Account Protection login check and the email flow through Email_Service::api_send_auth_email(), then find how Jetpack detects Offline Mode. Reproduce the lockout on a local Studio site using a password on the leak list. Done means offline sites or failed verification email delivery no longer block the user’s login.
Written by the indexing model from the issue text.
Description
Impacted plugin
Jetpack
Quick summary
On a local WordPress Studio site, where Jetpack runs in Offline Mode, Account Protection blocks logins it can't complete. When a password is on the leak list, the "Verify your identity" screen asks for an emailed code and shows "User not found." The code is sent through the WordPress.com API (Email_Service::api_send_auth_email()), which an offline Studio site can't reach, so it never arrives and the user is locked out of their own local site. This happens on the WordPress.org release (16.4) and on the WordPress.com build (16.5-a.3).
Steps to reproduce
- Clone a live site that has Account Protection turned on to a local environment, such as WordPress Studio on localhost, so Jetpack runs in Offline Mode.
- Log out.
- Log in with a password that's on the leak list. In my case it was Studio's default admin user, admin/123.
- The "Verify your identity" screen appears with the error "User not found." No email arrives, and there's no way past the screen.
Expected: Skip password detection when the site is in Offline Mode, or when the verification email can't be sent, instead of blocking the login.
Site owner impact
Fewer than 20% of the total website/platform users
Severity
Major
What other impact(s) does this issue have?
No revenue impact
If a workaround is available, please outline it here.
- Add define( 'DISABLE_JETPACK_ACCOUNT_PROTECTION', true ); to wp-config.php.
- Or log in with the auto-login from Studio's "WP Admin" button, which skips the login form.
Platform (Simple and/or Atomic)
Self-hosted
- Dominant language
- PHP
- Stars
- 1.9k
- Forks
- 913
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 809
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Automattic/jetpack
-
Bug Needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Automattic/jetpack#55870 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Automattic/jetpack#55385 · 1 comment ·
Maintainers usually reply within 1 day
-
WAF: jetpack_waf_blocklog is created without the site's charset and collationPossibly taken @jwebbdev claimed this 3 days ago. Open[Plugin] Protect Bug Customer Report
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Automattic/jetpack#55365 · 1 assignee ·
Maintainers usually reply within 1 day
-
[Package] Stats Admin [Type] Bug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
Automattic/jetpack#54188 ·
Maintainers usually reply within 1 day
-
Bug Needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/jetpack#53467 ·
Maintainers usually reply within 1 day
All issues in Automattic/jetpack
Similar issues
-
follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Invoice reminders more than a month after the due date, and bill reminders more than a month before it, are not sentPossibly taken @officialasishkumar claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Automattic/blocks-engine#7881 ·
Maintainers usually reply within 1 day
-
[FrameworkBundle] MicroKernelTrait lists BundleAdapter instead of the bundle class in kernel.bundlesPossibly taken A pull request linked to this issue is open or already merged. OpenBug FrameworkBundle Status: Needs Review
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
[Flaky Test] testMonitorCallbackReturnExitsPossibly taken @uintaam claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
valkey-io/valkey-glide-php#515 ·
Maintainers usually reply within 4 days