Sunday, 16 August 2020

NodeJS - Error message is not working with EJS

been working on creating a website and I wanted to add an error message that would be displayed on the front end if there was already an account with that specific email registered.Currently when I register a new user with a completely different email, I am able to produce a nice green banner with text that says that 'You are now registered. Please log in'. However, when I follow the same method with the success messages and implement it into the error message, it just redirects to the login page with no text that says 'That email already exists. Please login'. Could someone point out the problem causing this?ThanksMy login.ejshttps://pastebin.com/5Pdku6W6My register.jshttps://pastebin.com/hB1ZY7VsThank you

Submitted August 16, 2020 at 11:38PM by PAB_ESCOBAR

No comments:

Post a Comment