Home > The Template System > Process Templates > The Recover Password Template

Table of Contents

DotAdmin User Guide

The Recover Password Template

If a user has forgotten his or her password, a new password can be generated and sent to the user's email address using the Recover Password process.

The Recover Password Template
The Recover Password Template

This template uses three conditional instructions and a BLOCK to contain the form. The three conditions are shown below.

<!-- IF {start} -->
  <p>Enter your username in the field below. We will mail a replacement
    password to the email address you provided when setting up your
    account.</p>
<!-- /IF {start} -->

<!-- IF {pwd_sent} -->
  <p><b>Password sent</b>: A new password has been mailed to the address
    provided in your user details. Your old password will no longer be
    valid.</p>
<!-- /IF {pwd_sent} -->

<!-- IF {not_found} -->
  <p><b>User not found: </b>The username you supplied was not valid.
    Please try again:</p>
<!-- /IF {not_found} -->

Conditional messages in the Recover Password template.

The only other template element in the Password Recovery template is BLOCK {form}, shown below.

<!-- BLOCK {form} -->

  <form method="post" action="/content/recover_pwd">
    <table border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td>Username</td>
        <td>
          <input type="text" name="input_uname">
        </td>
        <td>
          <input type="submit" name="Submit" value="Send">
        </td>
      </tr>
    </table>
  </form>

<!-- /BLOCK {form} -->

The Recover Password form.

Those of you who just arrived from studying the Edit User template will be pleased to hear that the above represents all there is to know about the Recover Password template.

Below is a summary of the template elements used in this template.

Placeholder Output
IF {start} Tells the user to submit a username to receive a password via email.
IF {pwd_sent} Informs the user that the password has been sent.
IF {not_found} The username provided was not valid, and so a password could not be sent.
BLOCK {form} Contains the form.