Forgot Password Web Part

The Forgot Password Web Part lets shoppers receive a temporary password. These temporary passwords expire after a short period, such as two hours, for security reasons. After the shoppers log in with the temporary passwords, they are prompted to change their password to something of their own choosing.

The Forgot Password Web Part uses the standard ASP.NET PasswordRecovery server control.

You can use the Forgot Password Web Part in two possible deployment environments: Windows SharePoint Services and Microsoft Office SharePoint Server. The components are:

  • ForgotPasswordWebPart: class derived from BaseUserControlWebPart that dynamically loads the Forgot Password user control.

  • ForgotPassword.ascx: displays an ASP.NET PasswordRecovery control to the shopper. The control uses the membership provider to alter the shopper in the Commerce Server 2009 Core Profiles System. You can provide e-mail support by configuring SMTP settings.

To enable e-mail notification used in the Forgot Password Web Part, you must configure the Simple Mail Transfer Protocol(SMTP) in the Web.config file for your application. 

The system.net section in the Web.config file should be similar to the following:

<system.net>
      <mailSettings>
            <smtp deliveryMethod="Network" from="store@yourcompany.com">
            <!-- 
            Uncomment the next line to configure a smart host server
            <network host="yourcompany_SMTP" />
            -->
            </smtp>
      </mailSettings>
</system.net>

Note

You must change the e-mail address and SMTP server name to the appropriate values for your site and network.

Properties

The following table lists the mapping of the properties for the Forgot Password Web Part.

Property

Maps to

"Security question's answer" label text

AnswerLabelText

"Security question's answer is required" message

AnswerRequiredErrorMessage

Email "subject" text

EmailSubjectLine

Email template file

EmailTemplateFile

"General failure" text

GeneralFailureText

Instructional text

HelpLabelText

"Home" button text

HomeButtonText

"Security question invalid answer" text

QuestionFailureText

"Security question" instructional text

QuestionInstructionText

"Security question" label text

QuestionLabelText

Security question section title text

QuestionTitleText

"Retrieve security question" button text

RetrieveSecurityQuestionButtonText

"Step one" section title text

StepOneLabelText

"Step two" section title text

StepTwoLabelText

"Submit" button text

SubmitButtonText

"Success" message

SuccessText

"User name unknown" message

UserNameFailureText

"User name" instructional text

UserNameInstructionText

UserNameLabelText

"User name" label text

"User name is required" message

UserNameRequiredErrorMessage

"User name" section title text

UserNameTitleText

See Also

Other Resources

Developing with SharePoint Commerce Services

Profile Administration System Web Parts

Working With the Forgot Password Web Part