This page allows registered (logged on) users to change their account information.
The following parameters are passed explicitly to settings2.csp
:
Parameter | [IN] Values | From | Description |
---|---|---|---|
The following parameters are passed explicitly from settings2.csp
:
Parameter | [OUT] Values | To | Description |
---|---|---|---|
The name of the action that the page has been requested to perform. | |||
settings2.csp
is launched from within settings.csp when the user clicks the My password link on the User Preferences page. The resulting URL looks like this:
settings2.csp
The base
parameter is passed into settings2.csp
as part of the query string. The base
parameter is used in settings2.csp
to return the user to the page's "base" location; that is, it specifies the location from which the user just came from.
Like in newpwdform.csp, the user enters new account information into a form and submits it. The page is reloaded, and the action
and base
parameters are appended to the query string:
The following is a conditional statement in settings.csp:
If Request.QueryString.Item("action") = "updateacctinfo"
This statement ensures that if action=updateacctinfo
appears in the query string, the user's old password and new password are retrieved from the form, and the old password is replaced by the new password:
oldpwd = Request.Form.Item("oldpwd")
newpwd = Request.Form.Item("newpwd")
Session("IStore").EnterpriseSession.UserInfo.SetPassword(oldpwd, newpwd)
After the account information is updated, the page is reloaded, but this time only the base parameter is passed as part of the query string, returning the user to the User Preferences page.
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |