Click or drag to resize

IUCJsonChangePassword 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 2024.4
Syntax
C#
[ObsoleteAttribute("Its recommended to use PasswordReset and PasswordChange instead")]
bool ChangePassword(
	string userName,
	string newPassword,
	string oldPassword
)

Parameters

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

Return Value

Type: 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