PASSWORD
Changes or assigns a password to the current Zim user ID.
Syntax
PASSWORD newpassword [oldpassword]
Parameters
newpassword | The new password, up to 18 characters. Any characters are valid (i.e., letters, digits, punctuation). $Null is also valid; its effect is to remove a password. Can also be an expression. If necessary, the expression is converted to character format. Complex expressions must be enclosed in parentheses. If the value given for newpassword is longer than 18 characters, only the first 18 characters are used. |
oldpassword | The current password. When there is no current password, omit oldpassword, or use $Null. Can also be an expression. If necessary, the expression is converted to character format. Complex expressions must be enclosed in parentheses. If the value given for oldpassword is longer than 18 characters, only the first 18 characters are used. |
Comments
The new password takes effect immediately. To remove a password, use a value for newpassword that is $Null.
Password checking is case-sensitive. They must be changed during a read/write transaction because passwords are stored in encrypted form. An attempt to change a password during a read-only transaction fails.
Example
Transaction (Explicit Read Write transaction)
password “$moreprofits” “$profits”
Changes the current user’s password from $profits to $moreprofits.