Forgot Password / Reset Password ¶
{exp:visitor:forgot_password}
The forgot password form can be used inside any template. As from EE v2.6.0 the forgot password email will contain a link o the reset password form. This form can also be used inside any template (see example code below)
Forgot password tag parameters¶
error_handling¶
Default off, set to “inline” to enable inline error handling.
error_delimiters¶
Error delimiters of errors when selecting inline error_handling. Each error will be wrapped in this piped parameter
error_delimiters='<span class="error">|<span>'
secure_action¶
Forces the form to use https as its action. Values yes/no, defaults to “no”.
reset_url (available from EE2.6.0)¶
Link to the reset password form page which will be included in the forgot password email
Forgot password form¶
{exp:visitor:forgot_password error_handling="inline" reset_url="/visitor_example/reset_password" parse="inward"}
{if password_sent}
<h3>A password reset mail has been sent to the provided email.</h3>
{if:else}
<fieldset>
<p>
<label for="email" class="form-label">Your email:</label>
<input type="text" name="email" id="email" class="form-text" value="" />
</p>
{error:email}
</fieldset>
<p>
<input type="submit" value="Retrieve password" class="button" />
</p>
{/if}
{/exp:visitor:forgot_password}
Reset password form (available from EE2.6.0)¶
{exp:visitor:reset_password error_handling="inline"}
{if password_reset}
<h3>Your password has been reset. You can now login with your new password</h3>
{if:else}
<fieldset>
<p>
<label for="email" class="form-label">Password :</label>
<input type="password" name="password" id="password" class="form-text" value="" />
</p>
<p>
<label for="email" class="form-label">Confirm Password :</label>
<input type="password" name="password_confirm" id="password_confirm" class="form-text" value="" />
</p>
{error:password}
</fieldset>
<p>
<input type="submit" value="Reset your password" class="button" />
</p>
{/if}
{/exp:visitor:reset_password}