User Documentation

User:Reset_Password template tag

The User:Reset_Password function allows your users to reset their passwords after submitting the User:Forgot_Password form, using the password_reset_template parameter to point to the page where the User:Reset_Password form will be found.

{exp:user:reset_password} content {/exp:user:reset_password}


The following parameters are available for use:



This parameter allows you to bypass the EE message template for displaying errors, and instead show your own regular template with the error messages. Error template must follow guidelines of User Error Page.



This parameter allows you to control any form attribute for the form in your template. Simply replace attribute with an attribute name such as id, name, class, etc, and specify a value for that attribute. You can specify this parameter multiple times to control as many attributes as necessary. This would normally be done to control your form with Javascript or style it with CSS.



This parameter allows you to execute Javascript functions at form submission.



This parameter is the incoming reset token from the URL, generated from the User:Forgot_Password - password_reset_template parameter which was emailed to the user as a reset link. The easiest way to use this parameter is to specify the segment you set in your password_reset_template parameter.

Without this parameter, User:Reset_Password cannot work. This must be correctly set.



This parameter allows you specify a return URL you'd like the user to be returned to after submitting the form.



This parameter allows you to set the action on the form to have https://. Use for processing forms with SSL.



This parameter allows you to set the return on the form to have https://. Use for processing forms with SSL.


The following conditionals are available for use:


{if user_no_results}
    The reset token provided is invalid.

This conditional is used in the form for when the token given for the reset form is invalid. If this conditional is not present in the form, the error will default to a system error to inform the user of the bad token.

Form Fields

The following form fields are available for use:


<input type="password" name="password" />

This is the field in which the user would specify their new password for the account.


<input type="password" name="password_confirm" />

This is the field in which the user would retype the password they've entered in the password field.


The following is a complete example of what a Reset Password form might look like:

<h2>Reset Password</h2>
<p>This form will allow you to reset your password.</p>

    <h4>Reset Password</h4>
        <label for="password">New Password</label>
        <input type="password" name="password" id="password" />
        <label for="password_confirm">Confirm New Password</label>
        <input type="password" name="password_confirm" id="password_confirm" />
        <button type="submit">Update Password</button>
{if user_no_results}
    <p>The reset token provided is invalid.</p>


Having problems setting up and/or using User? Support is offered from 10am to 4pm EST weekdays. Send us an email at and we will respond as quickly as we can.