Zoo Visitor

User guide

Change passwordΒΆ

<h2>Account - Change password</h2>

{if logged_in AND segment_3 == "success"}

        <h3>Password updated</h3>

{if:elseif logged_in}

        {exp:zoo_visitor:update_form return="zoo_visitor_example/change_password/success"}

                <fieldset>
                        When changing your password, you will be asked to login again for security reasons.
                        <p>
                                <label for="current_password" class="form-label">Current password:</label>
                                <input type="text" name="current_password" id="current_password" class="form-text"  />
                        </p>
                        <p>
                                <label for="new_password" class="form-label">New password</label>
                                <input type="password" name="new_password" id="new_password" class="form-text"  />
                        </p>
                        <p>
                                <label for="new_password_confirm" class="form-label">Confirm New password</label>
                                <input type="password" name="new_password_confirm" id="new_password_confirm" class="form-text"  />
                        </p>

                </fieldset>

                <p>
                        <input type="submit" value="Submit" class="button" />
                </p>

        {/exp:zoo_visitor:update_form}

{if:else}

        You are not logged in. <a href="{path=zoo_visitor_example/login}">Login</a> now.

{/if}