User-Password attribute to be updated when a user is added or updated
- The code to handle this has already been committed and checks for the $data['User']['Password'] variable. This is already handled in the WHMCS Rest client.
- The Users forms need to have a password field added of type="text" and have it's name="data[User][Password]" for that feature to work. app/Model/User.php
public function save($data = null, $validate = true, $fieldList = array())
{
// Calling the parent save method
$object = parent::save($data, $validate, $fieldList);
// Updating the User-Password attribute for this user
if (isset($data['User']['Password']) && !empty($id)) {
//...
}
}
Ref: