Recover account in the login popup fails with a JavaScript error and never sends the request
I maintainer di solito rispondono entro 1 giorno
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
- Ambito
- authentication, backend
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
Problem
"Recover account" in the login popup does not work.
- Click login, then "recover account".
- 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()insystem/core/users.phpwrites a bare<table>into the popup, without a<form>around it. The button callshypha(..., $(this).closest('form')), which gets an empty jQuery object, andhypha()fails on it. Even if it had been sent, the request carried no CSRF token, soexecutePostedCommand()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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PlanBCode/hypha
-
Impact: Medium Level: Easy Type: Bug Value: Users
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Impact: Low Level: Easy Pagetype: Festival Type: Bug Value: Coders
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Impact: Medium Level: Easy Pagetype: Mailinglist Type: Bug Value: Users
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
Impact: Low Level: Easy Type: Bug Value: Coders
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
PlanBCode/hypha#586 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Impact: Medium Level: Easy Type: Bug Usecase: De Stadsbron Value: Visitors
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
PlanBCode/hypha#522 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PlanBCode/hypha
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
swc-project/swc-next#1165 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nhsuk/nhsuk-prototype-kit-package#439 ·
I maintainer di solito rispondono entro 1 giorno
-
Add: &TV LogoApertacheck:passed logos:add
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100
-
BUG: Appointment time renders blank and PM appointment slots miscalculate vertical position in CalendarScreenForse già presa @aryanpatil-07 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AOSSIE-Org/BabyNest#297 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Onboarding form: instructor radio never pre-selected "Yes" (permission vs permissions typo)Forse già presa @ThakuraAnki l’ha presa oggi. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
WikiEducationFoundation/WikiEduDashboard#7235 ·
I maintainer di solito rispondono entro 1 giorno