SysSendPasswordResetEmailWithExpiry
Triggers the sending of a password reset email to the specified user. Note that the user must have an email identity attached to their profile.
Service | Operation |
---|---|
user | SYS_SEND_PASSWORD_RESET_EMAIL_WITH_EXPIRY |
Method Parameters
Parameter | Description |
---|---|
profileId | The profileId of the user to send the password reset email to |
tokenTtlInMinutes | The time-to-live for the password reset url, in minutes. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var userProxy = bridge.getUserServiceProxy();
var postResult = userProxy.sysSendPasswordResetEmailWithExpiry(
"aaa-bbb-ccc-ddd", // profileId + reset time in minutes
1440 ); //Number of minutes before the reset URL expires
if (postResult.status == 200) {
// Success!
}
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": null
}