Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#643 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@guidol-ive đang làm issue này rồi.

Từ ngày 28/10/2026.

  • #644 của @guidol-ive — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, php
Lĩnh vực
authentication, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
5
Fork
9
Merge trung bình
18 giờ 7 phút
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PlanBCode/hypha

Tất cả issue của PlanBCode/hypha

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.