If you have any query feel free to chat us!
Happy Coding! Happy Learning!
To create forms for sign up and sign in, you can use HTML and EJS templating language. Here are the steps you can follow:
signup.ejs in the views directory.signup.ejs file, add the HTML code for a form that accepts user input for the sign-up details. You can use the POST method for the form action attribute and specify the route to which the form data will be sent. Here's an example:phpCopy code
<form action="/signup" method="POST">
<label for="username">Username</label>
<input type="text" name="username" required>
<label for="email">Email</label>
<input type="email" name="email" required>
<label for="password">Password</label>
<input type="password" name="password" required>
<button type="submit">Sign up</button>
</form>
signin.ejs in the views directory.signin.ejs file, add the HTML code for a form that accepts user input for the sign-in details. You can use the POST method for the form action attribute and specify the route to which the form data will be sent. Here's an example:phpCopy code
<form action="/signin" method="POST">
<label for="username">Username</label>
<input type="text" name="username" required>
<label for="password">Password</label>
<input type="password" name="password" required>
<button type="submit">Sign in</button>
</form>
auth.js controller using the render method of the response object.That's it! You now have forms for sign up and sign in that can accept user input and send it to the server for processing.

When will I get my course?

Now, Your query was resolved.
Quick answers to common questions about our courses, quizzes, and learning platform
Didn't find what you're looking for?
Contact Support
I am not able to access videos from second class and further. I have already completed first class