The customers/reset_password template renders the password reset page, which hosts the form to reset the password for a customer account.


The customers/reset_password template is located in the templates > customers directory of the theme:

└── theme
    ├── layout
    ├── templates
    |   └── customers
    |     ├── reset_password.liquid
    |     ...


You should include the password reset form in your customers/account template or a section inside of the template.

The password reset form

The password reset form can be added to the form. Within the form tag block, you need to include the following:

Verification codetextcode
Password confirmationpasswordconfirm_password

For example:

<form method="POST" action="{{ '/api/customers/password_reset_email' | add_root_url }}">
    <input id="email" name="email" type="text" required pattern="[a-zA-Z0-9!#$%&'*+\\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?">
    <label for="email">Email</label>

<form method="PATCH" action="{{ '/api/customers/password_reset' | add_root_url }}">
  <input name="email" type="hidden">
    <input id="code" name="code" type="text" maxlength="6" required>
    <label for="code">Verification code</label>
    <input id="password" name="password" type="password" minlength="6" maxlength="16" pattern="[\s\S]{6,16}" required>
    <label for="password">Password</label>
    <input id="confirm-password" name="confirm_password" type="password" minlength="6" maxlength="16"
      pattern="[\s\S]{6,16}" required>
    <label for="confirm-password">Confirm password</label>
  <button type="submit">Confirm</button>