AayushSahani01 / AayushSahani01/Pooja_project

Backend of login and signup not working properly

Open
#10 4 comments 0 reactions 1 assignee Claimed by @KartikeyaGupta05 View on GitHub
GSSOC25 level2
Dominant language
JavaScript
Stars
4
Forks
16
PR merge metrics
No merged PRs in 30d

Description

**Description:**
The login and signup functionality is not working as expected.
When a user fills in the details in the login or signup form and submits it:

* **Login:** The page reloads, but no login is performed and no error message is shown.
* **Signup:** New accounts are not being created, and no feedback is given to the user.

**Steps to Reproduce:**

1. Go to the **Login** page.
2. Enter valid credentials and click **Login**.
3. Observe that the page reloads without logging in.
4. Go to the **Signup** page.
5. Fill in valid details and click **Sign Up**.
6. Observe that no account is created and no success or error message appears.

**Expected Behavior:**

* Login should authenticate the user and redirect them to the dashboard/homepage if successful.
* Signup should create a new user account and either redirect to login or auto-login the user.
* If authentication fails, an error message should be displayed without reloading the page.

**Actual Behavior:**

* Login reloads the page but does nothing.
* Signup does not create an account.
* No error messages are shown in either case.

**Environment:**

* Browser: (e.g., Chrome 139, Firefox 128)
* OS: (e.g., Windows 10, macOS 14)
* Device: (e.g., Desktop, Laptop, Mobile)

**Possible Cause:**

* Backend API routes for login and signup may not be functioning or connected properly.
* JavaScript event handlers for form submission might not be handling responses correctly.
* Missing validation or response handling in the frontend.

**Additional Context / Screenshots:**

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.