ClientUpdatePassword Method |
Updates the specified user's password. Requires current password if changing the current user's password, or requires system admin role if changing someone else's password.
Namespace:
MattermostDriver
Assembly:
MattermostDriver (in MattermostDriver.dll) Version: 0.0.3.10 (0.0.3.10)
Syntaxpublic void UpdatePassword(
string user_id,
string new_password,
string current_password = ""
)
Public Sub UpdatePassword (
user_id As String,
new_password As String,
Optional current_password As String = ""
)
public:
void UpdatePassword(
String^ user_id,
String^ new_password,
String^ current_password = L""
)
member UpdatePassword :
user_id : string *
new_password : string *
?current_password : string
(* Defaults:
let _current_password = defaultArg current_password ""
*)
-> unit
Parameters
- user_id
- Type: SystemString
The user ID. - new_password
- Type: SystemString
The new password. - current_password (Optional)
- Type: SystemString
(Optional) The current password, required only if changing current user's password.
See Also