-
Notifications
You must be signed in to change notification settings - Fork 10
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
Web App not working properly on my local system. #2
Comments
Before adding complaints and student registration , add block details in block table then add other tables |
I am trying to add " await db.pool.query("INSERT INTO block (block_name) VALUES ($1)", [block_id]); " in userController.js near line 30 (in the first try block). I have also included " const { full_name, email, phone, password, type, block_id } = req.body; " block_id here before inserting it into db but it's still not working. Is this repository missing some codes ? |
Add Block name and id, check db, if the block id is added or not, then register a new student or warden. Check all tables are created correctly. |
block table and users table are being input properly and all tables and columns names are same as this repo, only the below code is not working I guess (also thank you so much for helping me 😅) : const jwtToken = jwtGenerator(
}; It is not giving error but it is also not inserting values in the desired tables. |
I think jwtToken is responsible for the following undefined behaviour (sorry if I'm wrong 😅) :
While new user Registration, "User registered successfully, login to proceed" alert is not showing (Register.jsx line 50).
Account page is not showing any detail for student but working fine if a warden is logged in. Also, I'm not able to submit any complain as at the time of Registration, user data is not being input in student or warden tables. (userController.js from line 35).
Your project is Awesome, can you please help me resolve these issues ?
The text was updated successfully, but these errors were encountered: