Skip to main content
Version: 5.7.0

ResetEmailPasswordAdvancedWithExpiry

Advanced reset email password using templates. Allows the developer to specify how long the URL is valid for (in minutes).

ServiceOperation
authenticationV2RESET_EMAIL_PASSWORD_ADVANCED_WITH_EXPIRY

Method Parameters

ParameterDescription
emailAddressThe email address to send the reset email to.
serviceParamsSet of parameters dependant on the mail service configured.
tokenTtlInMinutesThe time-to-live for the password reset url, in minutes.

Usage

http://localhost:3000
string emailAddress = "email@email.com";
string serviceParams = "{\"templateId\":\"template-id-guid\",\"substitutions\":{\"aKey\":\"aValue\"},\"categories\":[\"category1\",\"category2\"]}";
int tokenTtlInMinutes = 1440;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.AuthenticationService.ResetEmailPasswordAdvancedWithExpiry(emailAddress, serviceParams, tokenTtlInMinutes, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": null
}