ExpressionEngine Docs

Forgot Password Form Tag

Overview

Output a reset password form that allows members accessing it via a link from a forgotten email form to reset their password while logged out.

{exp:member:reset_password_form}

        <label>Your Email Address</label><br />
        <input type="email" name="email" value="" maxlength="120" size="40" />

        <input type="submit" name="submit" value="Submit" />

{/exp:member:reset_password_form}

Parameters

return=

return="member/login/success"

Form Inputs

Password

        <label>Your New Password</label><br />
        <input type="password" name="password" value="" maxlength="50" size="40" />

The new password to set.

Password Confirmation

        <label>Confirm New Password</label><br />
        <input type="password" name="password_confirm" value="" maxlength="50" size="40" />

Duplicate of the new password set in the password form input.

Variable Pairs

{errors}

Form submission errors are displayed using a “looping pair” as there can be more than 1 error in a form submission.

{errors}
    <p>{error}</p>
{/errors}

Error Tag Pair Parameters

backspace=
backspace="3"

The backspace= parameter will remove characters, including spaces and line breaks, from the last iteration of the tag pair.

Error Tag Pair Variables

{error}
{error}

The error text.

Example

{exp:member:reset_password_form
    return="member/login/success"
    }

    <p>
        <label>Your New Password</label><br />
        <input type="password" name="password" value="" maxlength="50" size="40" />
    </p>

    <p>
        <label>Confirm New Password</label><br />
        <input type="password" name="password_confirm" value="" maxlength="50" size="40" />
    </p>

    <p><input type="submit" name="submit" value="Submit" /></p>

    <p><a href="{path='member/login'}">Login</a> &nbsp; &nbsp; <a href="{path='member/registration'}">Register</a></p>
{/exp:member:reset_password_form}