Change Password Web Part

The Change Password Web Part lets shoppers that are already logged in change their passwords.

The Change Password Web Part asks the shopper to enter an existing password and then a new password. The shopper enters the new password twice so that it can be compared to make sure that the shopper has not mistyped it. All passwords are displayed with obfuscating characters for additional security.

There are two components to the Change Password Web Part:

  • The Change Password Web Part validates the shopper's input on the client to prevent a round trip to the server if the passwords do not match or are not secure enough. The developer configuring the site is able to assign a password pattern (as a regular expression) that is enforced by both client-side and server-side validation. In addition to this pattern, a page designer can enter a string that describes the required password pattern to the shopper.

  • ChangePassword.ascx file displays an ASP.NET ChangePassword control to the shopper. The control authenticates the user against the Commerce Server 2009 Profiles System.

Properties

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

Property

Maps To

On cancel, go to URL

CancelDestinationPageUrl

"Cancel" button text

CancelPushButtonLabel

"Password change failed" message

ChangePasswordFailureText

"Submit" button label

ChangePasswordPushButtonLabel

"Change Password" title text

ChangePasswordTitle

"Confirm new password" label text

ConfirmNewPasswordLabel

"Confirm new password is required" message

ConfirmNewPasswordRequired

On completion, go to URL

ContinueDestinationPageUrl

"Continue" button text

ContinuePushButtonLabel

"Current password" label text

CurrentPasswordLabel

"Current password is required" message

CurrentPasswordRequiredErrorMessage

Display "user name"

DisplayUserName

Instructional text

InstructionText

"Passwords don't match" message

NewPasswordCompareErrorMessage

"New password" label text

NewPasswordLabel

"New password is required" message

NewPasswordRequiredErrorMessage

"Password creation tip" link text

PasswordCreationTipLink

"Password creation tip" text

PasswordCreationTipText

"Validation summary" header text

PasswordValidatorErrorMessage

"Password change is required" text

RequiredPasswordChangeText

"Success" text

SuccessText

"User name" label text

UserNameLabel

"Security question" label

NA

"Security answer" label

NA

* Security question help link

NA

Security question help text

NA

Error message for required security question

NA

Error message for security answer

NA

Continue Shopping Button label

NA

Continue Shopping Url

NA

The Change Password Web Part is customizable through the .ascx file. Password strength is configured by using a regular expression.

See Also

Other Resources

Developing with SharePoint Commerce Services

Profile Administration System Web Parts

Working With the Change Password Web Part