Click or drag to resize

IUCJsonResetPassword Method

Note: This API is now obsolete.

Send in Reset Password request for Member Contact

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 ResetPassword(
	string userName,
	string resetCode,
	string newPassword
)

Parameters

userName
Type: SystemString
resetCode
Type: SystemString
Reset Code returned from ForgotPassword
newPassword
Type: SystemString

Return Value

Type: Boolean
Exceptions
ExceptionCondition
LSOmniServiceExceptionStatusCodes returned:
  • StatusCode.UserNameNotFound
  • StatusCode.ResetPasswordCodeInvalid
  • StatusCode.ResetPasswordCodeNotFound
  • StatusCode.ResetPasswordCodeExpired
  • StatusCode.PasswordInvalid
  • StatusCode.ParameterInvalid
Remarks
LS Central WS2 : MemberPasswordReset

If anything fails, simply ask the user to go through the ForgotPassword again..

Error PasswordInvalid = ask user for better password

Error ParameterInvalid = ask user for correct userName since it does not match resetCode

All other errors should as the user to go through the forgotPassword flow again

See Also