UserChangePassword Method

Change the password for this user

Definition

Namespace: T4.API
Assembly: T4API.47 (in T4API.47.dll) Version: 4.7.0.0 (4.7.68.4)
C#
public void ChangePassword(
	string psOldPassword,
	string psNewPassword,
	OnLoginResponse poCallback
)

Parameters

psOldPassword  String
The current paswword
psNewPassword  String
The new password
poCallback  OnLoginResponse
The method to call with the result of this change

Remarks

This method will return a reason if the new password does not meet the complexity requirements. Even if it returns "" and sends the request then you should check the result parameter of the PasswordChangeResponse event for PasswordChangeSuccess or PasswordChangeFailed as some checks, such as for password history are only done server side. The user must already be successfully logged in as well.

See Also