Password Recovery Change Password

WCF


Method
public AuthServerResponse PasswordRecoveryChangePassword(string authServerPartnerLoginName,
		string authServerPartnerLoginPassword,
		string pw,
		string rid,
		string mid,
		string fromEmailName,
		string fromEmailAddress,
		string emailSubject,
		string emailBody,
		boolean html)
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassID account login name
authServerPartnerLoginPasswordstringSurePassID account login key
pwstringUser account password
ridstringSystem generated value, contained in reset password url
midstringSystem generated value, contained in reset password url
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
htmlbooleanBoolean indicating if email is HTML formatted
Sample WCF C# Method
AuthServerResponseresp = PasswordRecoveryChangePassword("accountLogin",
            "accountKey",
			"tinyD4nc3r",
	        "{rid}",
			"{mid}",
            "Mandy",
            "mandy@example.com",
            "Recover Password", 
			"Let us help you recover your password.",
            false);
Sample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {      
       message.Text = resp.ErrorMsg;
       return false;
 }


REST


REST parameterdata typedescription
spAccountLoginNamestringSurePassID account login name
spAccountLoginKeystringSurePassID account login key
usernamestringuser account login name
typestringpassword_recovery_change_password
pwstringUser account password
ridstringrid
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
Sample REST/Json Request
{
 "username": "{{username}}",
 "spAccountLoginName": "{{spAccountLoginName}}",
 "spAccountLoginKey": "{{spAccountLoginKey}}",
 "type": "password_recovery_change_password",
 "pw": "tinyD4nc3r",
 "rid": "?",
 "mid": "?",
 "fromEmailName": "John Denver",
 "fromEmailAddress": "john.denver@example.com",
 "emailSubject": "Resetting your password",
 "emailBody": "Let us help you reset your password.",
 "html": 1
}
Sample REST/Json Response
 {  
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "password_recovery_change_password"
  }