Kopīgot, izmantojot


Working With the Change Password Web Part

The Change Password Web Part lets shoppers reset their passwords.

Web Part

The following figure shows the Change Password Web Part.

Dd464566.Vug_ChangePassword_WebPart(en-US,CS.90).gif

The shopper must first be logged into the site. Shopper re-enter their current passwords and then they specify a new password. The new password must be specified twice in order to confirm that the password has been entered correctly.

All text boxes that contain passwords display stars or similar characters to obscure the shopper's password for security reasons. Passwords are validated against a pattern to ensure strength. The default password strength validation requires a shopper to enter a minimum of six characters with at least one of each of the following: upper-case character, lower-case character, and number. Password strength is configured by using a regular expression.

Property Sheet

The following figure shows the Change Password Web Part property sheet. The Change Password Web Part property sheet lets site designers control some aspects of the Web Part's behavior and appearance. The property sheet is displayed by selecting the edit option on the Web Page (in Edit Page mode) and then selecting Modify Shared Web Part. This displays the property sheet. Expand the sections to see the relevant properties.

Dd464566.Vug_ChangePassword_WP_Properties(en-US,CS.90).gif

Properties

There following table lists and describes the properties for the Change Password Web Part.

Property

Maps To

Type

Description

Default

On cancel, go to URL

CancelDestinationPageUrl

String

Sets the page URL to redirect to when the user presses the "cancel" button.

Blank

"Cancel" button text

CancelPushButtonLabel

String

Sets the text displayed on the "cancel" button.

Cancel

"Password change failed" message

ChangePasswordFailureText

String

Sets the text displayed when the password change fails.

Incorrect password, please enter your current password.

"Submit" button label

ChangePasswordPushButtonLabel

String

Sets the text displayed on the "submit" button.

Submit

"Change Password" title text

ChangePasswordTitle

String

Sets the title text displayed above the change password section.

Change Password

"Confirm new password" label text

ConfirmNewPasswordLabel

String

Sets the text displayed beside the "confirm new password" text box.

* Confirm new password

"Confirm new password is required" message

ConfirmNewPasswordRequired

String

Sets the text displayed when the user submits the form without supplying a value for "confirm new password".

Please re-enter the password for confirmation

On completion, go to URL

ContinueDestinationPageUrl

String

Sets the page URL to redirect to once the operation has completed.

Blank

"Continue" button text

ContinuePushButtonLabel

String

Sets the text displayed on the "continue" button.

View My Account

"Current password" label text

CurrentPasswordLabel

String

Sets the text displayed beside the "current password" text box.

* Current password

"Current password is required" message

CurrentPasswordRequiredErrorMessage

String

Sets the text displayed when the user submits the form without supplying a value for "current password".

Please enter your password

Display "user name"

DisplayUserName

Boolean

If checked, causes the web part to show the user name of the account whose password is being reset.

False

Instructional text

InstructionText

String

Sets the text block displayed below the title. Can be used to provide verbose instructions to end users.

Enter your old and new passwords to change the login credentials for your account.

"Passwords don't match" message

NewPasswordCompareErrorMessage

String

Sets the text displayed when the user inputs a password confirmation that doesn't match their "new password".

The two passwords do not match.

"New password" label text

NewPasswordLabel

String

Sets the text displayed beside the "new password" text box.

* New password

"New password is required" message

NewPasswordRequiredErrorMessage

String

Sets the text displayed when a user submits the form without supplying a value for "new password".

You must enter a new password

"Password creation tip" link text

PasswordCreationTipLink

String

Sets the text displayed as the "password creation tip" hyperlink.

Password creation tips

"Password creation tip" text

PasswordCreationTipText

String

Sets the text displayed to help the user create an acceptable password.

Your password must be at least 6 characters long, and contain at least one one lower case letter, one upper case letter and one digit

"Validation summary" header text

PasswordValidatorErrorMessage

String

Sets the text displayed above the collection of errors, which is displayed when the user makes one or more input mistakes.

Your password must be at least 6 characters long, and contain at least one lower case letter, one upper case letter and one digit

"Password change is required" text

RequiredPasswordChangeText

String

Sets the text displayed at the top of the web part to alert the user that a password change is required to continue.

You are taken to this page because you are required to change your password.

"Success" text

SuccessText

String

Sets the text displayed once the password change has completed successfully.

Your password has been successfully changed.

"User name" label text

UserNameLabel

String

Sets the text displayed beside the "user name" text box.

E-mail address

"Security question" label

NA

String

Sets the text displayed beside the "security question" text box.

* Security question

"Security answer" label

NA

String

Sets the text displayed beside the "security answer" text box.

* Security answer

* Security question help link

NA

String

Sets the page URL to redirect to if the Security Question Help link is clicked.

Security question help

Security question help text

NA

String

Sets the text displayed beside the "security question help" text box.

A question only you know the answer to.

Error message for required security question

NA

String

Sets the error message text displayed beside the "security question" text box.

Please enter a security question

Error message for security answer

NA

String

Sets the error message text displayed beside the "security answer" text box.

Please enter a security answer

Continue Shopping Button label

NA

String

Sets the text displayed in the Continue Shopping Button

Continue Shopping

Continue Shopping Url

NA

String

Sets the page URL to redirect to if the Continue Shopping Button is clicked.

/Pages/default.aspx

See Also

Other Resources

Working With the Web Parts

Profile Administration Web Parts

Change Password Web Part