sendSetPasswordEmail( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Sends a site member an email with a link to set their password.

The set password link is valid for 3 hours, and it can be used only once. If the link expires, the original password remains.

Permissions
Manage Members
Learn more about app permissions.
Method Declaration
Copy
function sendSetPasswordEmail(
  email: string,
  options: SendSetPasswordEmailOptions,
): Promise<SendSetPasswordEmailResponse>;
Method Parameters
emailstringRequired

Login email of the member whose password will be set.


optionsSendSetPasswordEmailOptions

Email display options.

Returns
Return Type:Promise<SendSetPasswordEmailResponse>
JavaScript
import { authentication } from "wix-members.v2"; async function sendSetPasswordEmail(email, options) { try { const result = await authentication.sendSetPasswordEmail(email, options); return result; } catch (error) { console.error(error); // Handle the error } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?