Authentication Forms
The most common type of authentication is email and password. This lesson covers setting up the forms as well as the functionality required to toggle between them as needed.
We'll cover the following...
HTML for the Forms #
We are going to have three separate forms, each to complete a different task.
The name of the forms explain what they do:
- Create user form
- Sign in form
- Forgot password form
The HTML is straightforward and short so I am going to present all of it to you right now. All forms go inside your modal.
Style the Forms #
We add this CSS to make your forms look good.
Access the forms #
From your JavaScript, get access to the forms by using the querySelector.
We need to do this for two reasons:
-
Creating functionality to toggle between the forms. This is what we are handling in this lesson.
-
Ability to submit the form information to Firebase to authenticate our users, or reset a password. We will do this in an upcoming lesson.