Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Recover account in the login popup fails with a JavaScript error and never sends the request

Aperta
#643 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@guidol-ive ci sta già lavorando.

Dal 28/10/2026.

  • #644 di @guidol-ive — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
javascript, php

Direzione di ricerca

Start with reregister() in system/core/users.php and trace how the login popup submits the request through hypha() and executePostedCommand(). Check how the page handles the no-user result and CSRF token. It is done when recovery submits with the page token and reloads with either the mail-sent or no-user message; pull request #644 is already open.

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

Descrizione

Component: User interface Impact: Medium Level: Easy Type: Bug Value: Users

Problem

"Recover account" in the login popup does not work.

  1. Click login, then "recover account".
  2. Enter a user name or e-mail address and click "submit".

Nothing happens. The browser console shows, on every click:

Uncaught TypeError: Cannot read properties of undefined (reading '__proto__')
    at hypha (...)
    at HTMLInputElement.onclick

Cause

  • reregister() in system/core/users.php writes a bare <table> into the popup, without a <form> around it. The button calls hypha(..., $(this).closest('form')), which gets an empty jQuery object, and hypha() fails on it. Even if it had been sent, the request carried no CSRF token, so executePostedCommand() would have refused it.
  • When no user matches, the PHP function reregister() returns nothing. The command then reaches the page itself, which does not know it and answers 404 instead of showing the message.

Expected

The request is sent with the CSRF token of the page. The page reloads and shows that a mail was sent, or that no user was found.

Lingua principale
JavaScript
Stelle
5
Fork
9
Merge medio
18h 7m
PR unite (30g)
11

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 PlanBCode/hypha

Tutte le issue di PlanBCode/hypha

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.