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 return the user error text to display if the new password does not meet the password criteria requirements as configured in the Setup table. If the password criteria are satisfied, it will then set the new password and return an empty (false) string. This behaviour is in contrast to the PWHash command that will trigger a runtime error.