My project name is https://samhamsemporium.glitch.me/
you press the button and get sent to /trolled and press login or register then you get sent to /login or /register and the enter some form data and when you press submit, that’s where the problem starts. Now I don’t know where I messed up and how but I barely even understand my own code and some of it was made in chat gpt so I don’t see where the problem even starts. If you can help I’d appreciate this a lot.
What I’m trying to get it to do is make it go to /home when the credentials are correct.
The code seems working OK, just confirm that you are entering the correct key. Also, I hightly recommend that you put your registrations.db in your .gitignore, else anyone can read them.
I used res.redirect("/home") but that wont work
/home wont work at all even when I put it in my browser so I switched it to be /trolled(which works in the browser) but it does the same thing as /home