Zoo Visitor

User guide

Forgot password

EE version < 2.6.0

<h2>Account - Forgot password</h2>

{if logged_in}

        You are already registered and logged in. <a href="{path=logout}">Logout</a> or go to your <a href="{path=visitor_example/profile}">profile</a>.

{if:else}

        {exp:visitor:forgot_password error_handling="inline"}

                {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}

{/if}

EE version >= 2.6.0

{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)

The link in the forgot password email will point to the page where this reset form can be used.

{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}