change_password
change_password. Changes a user's password
Runs on: the server only. The statement that calls it runs on the server, and its result is a server-side value: the server keeps it, the device never writes it, and it is copied to the device only when a device statement reads it.
Must have permission
This function only works if the user is logged in and is either an administrator or the user whose password is being changed. using this function without the right permissions will automatically trigger an error and cause an alert
Format:
change_password(user,password)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| user | clouduser | Clouduser object for the user being changed |
| password | string | the new password |