Change Password - CrystalCommerce Liquid Documentation for Designers

Change Password

The change password page is the page the user goes to after checking their email for a forgot password link. It allows them to enter a new password for their account.

Additional Variables Available

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

Used in Routes

  • /user/change_password

File: change_password.liquid

Default Liquid Template

<h1 class="pagetitle">{{ "user.password_change.change_password" | trans }}</h1>
{% if error %}
<div id="flash_messages">{{ error }}</div>
{% endif %}

<form action="/user/change_password" method="post" id="pass_form">
{{ token_tag }}
<div class="user_password" id="password_change">
	<p>
		<label for="password">{{ "user.password_change.new_password" | trans }}</label>
		<input type="password" name="user[password]" value="" size="30" id="password" />
	</p>
	<p>
    <label for="password_confirmation">{{ "user.password_change.confirm_new_password" | trans }}</label>
		<input type="password" name="user[password_confirmation]" value="" size="30" id="password_confirmation" />
	</p>
</div>

<input type="submit" name="submit" value="{{ "buttons.change_password" | trans }}" />
<input type="button" onclick="location.href='/user/home'" value="{{ "buttons.cancel" | trans }}" />
</form>

Default Mobile Liquid Template

<h1 class="pagetitle">Change Password</h1>
{% if error %}
<div id="flash_messages">{{ error }}</div>
{% endif %}

<form action="/user/change_password" method="post" id="pass_form">
{{ token_tag }}
<div class="user_password" id="password_change">
  <p>
    <label for="password">{{ "user.password_change.new_password" | trans }}</label>
    <input type="password" name="user[password]" value="" size="30" id="password" />
  </p>
  <p>
    <label for="password_confirmation">{{ "user.password_change.confirm_new_password" | trans }}</label>
    <input type="password" name="user[password_confirmation]" value="" size="30" id="password_confirmation" />
  </p>
</div>

<input type="submit" name="submit" value="{{ "buttons.change_password" | trans }}" />
<input type="button" onclick="location.href='/user/home'" value="{{ "buttons.cancel" | trans }}" />
</form>

Drops Supported