Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagec#
title Method
public AuthServerResponse SendPasswordRecovery(string authServerPartnerLoginName,
		string authServerPartnerLoginPassword,
		string pw,
		string rid,
		string mid,
		string fromEmailName,
		string fromEmailAddress,
		string emailSubject,
		string emailBody,
		boolean html)


Boolean indicating if email is HTML formatted
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId SurePassID account login name
authServerPartnerLoginPasswordstringSurePassId SurePassID account login key
pwauthServerPartnerLoginPasswordstringUser account password
ridstringrid
midstringmid
fromEmailNamestringName for sender of password recovery email
fromEmailAddressstringEmail address for sender of password recovery email
emailSubjectstringSubject of password recovery email
emailBodystringBody of password recovery email
htmlbooleanUsername to send recovery password


Code Block
languagec#
titleSample WCF C# Method
AuthServerResponseresp = SendPasswordRecovery("accountLogin",
            "accountKey",
			"tinyD4nc3r", 	        "rid", 			"mid",
            "Mandy",
            "mandy@example.com",
            "Recover Password", 
			"Let
us help you recover your password.",             false);


Code Block
languagec#
titleSample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {      
       message.Text = resp.ErrorMsg;
       return false;
 }

...

rid
REST parameterdata typedescription
spAccountLoginNamestringSurePassId SurePassID account login name
spAccountLoginKeystringSurePassId SurePassID account login key
usernameemailstringuser account login nameUsers email that needs password recovery 
typestringsend_password_recovery
pwstringUser account password
stringrid
midstringmid
fromEmailNamestringName of sender of password recovery email
fromEmailAddressstringAddress of sender of password recovery email
emailSubjectstringSubject of password recovery email
emailBodystring

Body of password recovery email

htmlbooleanWhether password recovery email is HTML formatted

...

Code Block
languagejs
titleSample REST/Json Request
{
 "username": "{{username}}",
 "spAccountLoginName": "{{spAccountLoginName}}",
 "spAccountLoginKey": "{{spAccountLoginKey}}",
 "type": "changesend_userpassword_passwordrecovery",
 "pw": "tinyD4nc3r",
 "rid"email": "ridMandy@yourco.com",  "mid": "mid",
 "fromEmailName": "John Denver",
 "fromEmailAddress": "john.denver@example.com",
 "emailSubject": "Resetting your password",
 "emailBody": "Let us help you reset your password.",
 "html": 1
}

...

Code Block
languagejs
titleSample REST/Json Response
 {  
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "send_password_recovery_change_password"
  }