sendResetPasswordEmail( )


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

Important:

This function is in Developer Preview and is subject to change.

The sendResetPasswordEmail() function returns a Promise that resolves when the set password link is emailed to the member.

The reset password link is valid for 3 hours, and it can be used only once. If the link expires, no changes are made to the password.

Method Declaration
Copy
function sendResetPasswordEmail(email: string): Promise<void>;
Method Parameters
emailstringRequired

Login email of the member whose password will be set.

Email a member with a link to reset their password
JavaScript
import { authentication } from "wix-members-frontend"; authentication .sendResetPasswordEmail(email) .then((status) => { console.log("Password reset email sent"); }) .catch((error) => { console.error("Error sending email:", error); });
Errors

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

Did this help?