Thursday, February 25, 2010

Create Forgot Password Form

The Create Forgot Password Form server behavior is for users who no longer remember their password. The page will take a user's email address, verify that it exists in the database , and send the user their current password.

There are two ways to automatically create a page for users who forgot their passwords. The first is a checkbox in the Login Form Wizard. The second is applying theCreate Forgot Password Form server behavior from the Application panel, Server Behaviors -> + -> MX Kollection -> User Login -> Advanced -> Create Forgot Password Form.

The following dialog box will appear:

The three buttons offer the next functionalities:

  • Click OK if you want to generate a password reminder form.

  • Click Cancel if you don't want to apply the server behavior.

  • The Help button takes you to this help page.

The page will contain a form where the users will submit their email address. The generated page in Dreamweaver looks like this:

The browser view will look like in the image below:

Once the address is found in the database, an email is sent out to the user with the following default message:

If the email address is not found in the database, an error message will appear:

Note: If you use this server behavior on the ColdFusion server model, a file named Application.cfm will be automatically generated in the site root folder. Do not delete this file, as it contains settings related to session variables used by the server behavior and the current application. If you remove this file or modify it, application pages that use sessions will not function properly.

Your Comments

0 Responses to "Create Forgot Password Form"