IeCommerceServiceResetPassword Method |
Send in Reset Password request for Member contact
Namespace:
LSOmni.Service
Assembly:
LSOmni.Service (in LSOmni.Service.dll) Version: LS Omni 3.7.0
Syntaxbool 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
ExceptionsException | Condition |
---|
LSOmniServiceException | StatusCodes returned:
- StatusCode.UserNameNotFound
- StatusCode.ResetPasswordCodeInvalid
- StatusCode.ResetPasswordCodeNotFound
- StatusCode.ResetPasswordCodeExpired
- StatusCode.PasswordInvalid
- StatusCode.ParameterInvalid
|
Remarks
If anything fails, simply ask the user to go thru the forgotpassword again..
Error PasswordInvalid = ask user for better pwd
Error ParameterInvalid = ask user for correct username since it does not match resetcode
All other errors should as the user to go thru the forgotPassword flow again
See Also