# Forgot Password Form


import ForgotPassword from "mela-store";

# Example:

I remember my password? Login
<login 
  ref='melastoreForgotPassword'
  @send-password-reset-link='sendPasswordResetLink'
  @show-login-form='showLoginForm'
/>

# Validation

The current validations in place check to ensure that:

  1. All fields are required
  2. A valid email is used

Adding custom errors/validations can be done using the following in the login event:

this.$refs.melastoreRegister.setEmailError(error)

# Props

Name
Type
Default
Description
classesstring""Additional classes

# Events

Name
Arguments
Description
send-password-reset-linkemail - user emailSend password reset email to user
show-login-form - Switches view to login form