CodeCharge Studio

Preserve Password

When dealing with encrypted passwords on user maintenance forms, the original password is further encrypted and stored in a hidden field called "Shadow Control", while the Password field is populated with an arbitrary string or a blank value. This action copies a password value from the password field to a hidden control called "Shadow Control", then assigns a new default value to the password field. The action should be assigned to the Before Show event of a record form that is used for user or password maintenance.

When the Record builder detects the password field being selected it automatically provides an option to encrypt password, which then creates the Shadow Control and assigns the Preserve Password action to the form.

Action properties:

Property Description
Password Control Name The name of the textbox control corresponding to the encrypted password field.
Shadow Control Name The name of the hidden control where the original password value should be copied to.
Value A new default value to be assigned to the Password Control. This same value should be also specified in the "Value" property of the Reset Password Validation and Encrypt Password actions

See also:


On-line, printable versions and updates