Handling Error and Success Messages

When you try to sign in or create a user, things can go wrong. The user might type in an incorrect email or the wrong password for instance. Firebase returns an error which we can show to the user. This helps them know why they are not getting the results they expected. We will also cover success messages which are relevent​ to the forgot password form.

Error & Success Message HTML #

We create a div with the id of message. This div will be just below the forgot password form inside your modal. It’s not specifically for that form, though. It will be available as a message center for all of our authentication forms.

Get hands-on with 1400+ tech skills courses.