Skip to content

Instantly share code, notes, and snippets.

@jamiepittock
Created November 12, 2011 09:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiepittock/1360274 to your computer and use it in GitHub Desktop.
Save jamiepittock/1360274 to your computer and use it in GitHub Desktop.
Update password form
{embed="layout/_start"
body_class=""
section=""
{!-- BETTER META OPTIONS BELOW --}
title=""
title_suffix=""
title_prefix=""
description=""
keywords=""
robots_index=""
robots_follow=""
robots_archive=""
canonical_url=""
}
{if segment_3 == "success"}
<p>Success. You've updated your password.</p>
{if:else}
{exp:zoo_visitor:update_form
return="forms/change_password/success"
}
<fieldset>
<h2>Change password</h2>
<p>When changing your password, you will be asked to login again for security reasons.</p>
<div class="form_field">
<label for="change_current_password">Current password:</label>
<input type="password" name="current_password" id="change_current_password" />
</div>
<div class="form_field">
<label for="change_new_password">New password:</label>
<input type="password" name="new_password" id="change_new_password" />
</div>
<div class="form_field">
<label for="change_new_confirm_password">Confirm new password:</label>
<input type="password" name="new_confirm_password" id="change_new_confirm_password" />
</div>
<div class="submit">
<input type="submit" name="submit" value="Submit" />
</div>
</fieldset>
{/exp:zoo_visitor:update_form}
{/if}
{embed="layout/_end"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment