Click or drag to resize

IUCServiceChangePassword Method

Note: This API is now obsolete.

Change password

NOTE: Its recommended to use PasswordReset and PasswordChange instead


Namespace: LSOmni.Service
Assembly: LSOmni.Service (in LSOmni.Service.dll) Version: Commerce Service for LS Central 2026.8.0
Syntax
C#
[ObsoleteAttribute("Its recommended to use PasswordReset and PasswordChange instead")]
bool ChangePassword(
	string userName,
	string newPassword,
	string oldPassword
)

Parameters

userName  String
user name (LS Central:LoginID)
newPassword  String
new password (LS Central:NewPassword)
oldPassword  String
old password (LS Central:OldPassword)

Return Value

Boolean
true/false
Exceptions
ExceptionCondition
LSOmniServiceExceptionStatusCodes returned:
  • StatusCode.Error
  • StatusCode.SecurityTokenInvalid
  • StatusCode.UserNotLoggedIn
  • StatusCode.DeviceIsBlocked
  • StatusCode.AccessNotAllowed
  • StatusCode.ContactIdNotFound
  • StatusCode.PasswordInvalid
  • StatusCode.PasswordOldInvalid
Remarks
LS Central WS2: MemberPasswordChange
See Also