changePassword()

Overview

public boolean function changePassword(
      required string  password      
    ,          string  userId        
    ,          boolean changedByAdmin = false
)

Changes a password

Arguments

NameTypeRequiredDescription
passwordstringYesThe new password
userIdstringNoID of the user whose password we wish to change (defaults to currently logged in user id)
changedByAdminbooleanNo (default=false)