Account Protection locks users out of local WordPress Studio sites (Offline Mode)

Aperta
#55,069 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php, wordpress

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Bug Needs triage
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).

image
Steps to reproduce
  1. 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.
  2. Log out.
  3. Log in with a password that's on the leak list. In my case it was Studio's default admin user, admin/123.
  4. 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

Lingua principale
PHP
Stelle
1.9k
Fork
913
Merge medio
1g 18h
PR unite (30g)
809

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Automattic/jetpack

Tutte le issue di Automattic/jetpack

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.