changePassword()
Overview
public boolean function changePassword(
required string password
, string userId
, boolean changedByAdmin = false
)
Changes a password
Arguments
Name | Type | Required | Description |
---|---|---|---|
password | string | Yes | The new password |
userId | string | No | ID of the user whose password we wish to change (defaults to currently logged in user id) |
changedByAdmin | boolean | No (default=false) |