Recover account in the login popup fails with a JavaScript error and never sends the request
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, php
- Área
- authentication, backend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- JavaScript
- Estrellas
- 5
- Forks
- 9
- Merge medio
- 18 h 7 min
- PR fusionados (30 d)
- 11
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PlanBCode/hypha
-
Component: User interface Impact: Low Level: Easy Pagetype: Peer reviewed article Type: Bug Value: Visitors
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Impact: Medium Level: Easy Type: Bug Value: Users
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Impact: Low Level: Easy Pagetype: Festival Type: Bug Value: Coders
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Impact: Medium Level: Easy Pagetype: Mailinglist Type: Bug Value: Users
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Impact: Low Level: Easy Type: Bug Value: Coders
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
PlanBCode/hypha#586 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de PlanBCode/hypha
Issues similares
-
[Feature Request] [Web] Expose kvCacheQuantizationBits in the onnxruntime-web WebGPU EP optionsAbiertoep:WebGPU platform:web quantization
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
microsoft/onnxruntime#33752 ·
Los mantenedores suelen responder en 2 días
-
More Transport Mode IconsAbiertoicon request
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
tabler/tabler-icons#1693 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
alvarotrigo/fullPage.js#4755 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
jlab-sensing/ENTS-backend#854 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
andromarces/agent-loops#1242 ·
Los mantenedores suelen responder en 1 día