Forgot Password - CrystalCommerce Liquid Documentation for Designers

Forgot Password

The forgot password page allows the user to recover their password.

Additional Variables Available

error
String containing any error message from the previous step.
notice
Informational message from the previous step.

Used in Routes

  • /user/forgot_password

File: forgot_password.liquid

Default Liquid Template

<h1 class="pagetitle">{{ "user.forgot_password.forgot_password" | trans }}</h1>

{% if error %}
<div id="error">{{ error }}</div>
{% endif %}

{{ "user.forgot_password.form_instructions" | trans }}

<form method="post" action="/user/forgot_password" id="forgot_password_form">
{{ token_tag }}
  <p><label>{{ "user.forgot_password.enter_email" | trans }}</label> <input type="text" name="user[email]" value="" size="30" /></p>
  <p><input type="submit" value="{{ "buttons.submit" | trans }}" name="submit" /></p>
</form>

Default Mobile Liquid Template

<h1 class="pagetitle">{{ "user.forgot_password.forgot_password" | trans }}</h1>
{% if notice %}
  <p>{{ notice }}</p>
{% else %}
  {% if error %}
  <div id="error">{{ error }}</div>
  {% endif %}

  {{ "user.forgot_password.form_instructions" | trans }}

  <form method="post" action="/user/forgot_password" id="forgot_password_form">
  {{ token_tag }}
    <p><label>{{ "user.forgot_password.email_address"}}</label> <input type="text" name="user[email]" value="" size="30" /></p>
    <p><input type="submit" value="{{ "buttons.submit" | trans }}" name="submit" /></p>
  </form>
{% endif %}

Drops Supported