PWHash

Takes three parameters, TableName, Alias, Password

Description:

This command stores a hash of the new password for the user in the Database. The hash will be salted with the Alias, such that if the same password was chosen by one or more users their password hashes will not be the same. Whenever a user is logging into the system, it will refer to this stored password hash to authenticate the user. Note that this stored password is not placed in a Field of the Database Table; it is placed in a dedicated password hash file that cannot be loaded or attached to Database records.

This command will through a runtime error if the new password does not meet the password criteria requirements as configured in the Setup table. It should be used only when these criteria are pre-tested and the command is expected to complete successfully. In order to test the new password and get a user error message return instead of a runtime error, use the PWHash$ function instead.