IeCommerceServiceForgotPassword Method |
Request a ResetCode to use in Email to send to Member Contact
Namespace:
LSOmni.Service
Assembly:
LSOmni.Service (in LSOmni.Service.dll) Version: LS Omni 3.7.0
Syntaxstring ForgotPassword(
string userNameOrEmail,
string emailSubject,
string emailBody
)
Parameters
- userNameOrEmail
- Type: SystemString
User Name or Email Address - emailSubject
- Type: SystemString
If no subject is provided then Omni will replace subject and body with text from AppSettings - emailBody
- Type: SystemString
Put [RC] in Email body and Omni will replace it with the generated ResetCode
Return Value
Type:
StringResetCode if Omni is not sending the email
ExceptionsException | Condition |
---|
LSOmniServiceException | StatusCodes returned:
- StatusCode.UserNameNotFound
- StatusCode.ResetPasswordCodeInvalid
|
Remarks
Settings for this function are found in Omni Database - AppSettings table
- forgotpassword_omni_sendemail: Omni will send out Reset Password Email, if false only ResetCode is returned
- forgotpassword_code_encrypted: Reset Code is Encrypted
- forgotpassword_email_subject: Email subject line if subject parameter is empty
- forgotpassword_email_body: Email body text if subject parameter is empty. Variable: [URL] reset password URL
- forgotpassword_email_url: URL for the forget password
See Also