Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sign Up Page does not work properly #3

Open
ShadowSlayer03 opened this issue Jan 27, 2024 · 0 comments
Open

Sign Up Page does not work properly #3

ShadowSlayer03 opened this issue Jan 27, 2024 · 0 comments

Comments

@ShadowSlayer03
Copy link

No data in city table so sign up not working!!
I noticed an issue in your code that if there are no values in the city table inside the ngo database then while sign up the user will not be able to select a location and thereby the form just resubmits and the page reloads erasing the data, and the user doesn't get created.
As a simple fix to this issue, I have modified the ngo.sql to add code for inserting some placeholder location.
Just copy paste this code to your ngo.sql:

-- Added some placeholder values to city table so that the signup page works properly

INSERT INTO city VALUES (2,'Bengaluru');
INSERT INTO city VALUES (3,'Ahmedabad');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant