promptForgotPassword( )
Prompts the current site visitor with a password reset modal.
The promptForgotPassword()
function returns a Promise that resolves when
the visitor submits the Create New Password form.
If the visitor cancels the form without submitting it, the Promise is rejected.
promptForgotPassword()
cannot be called before the page is ready.
Notes:
-
The APIs in
wix-members-frontend
are only partially functional when previewing your site. View a published version of your site to see their complete functionality. -
The APIs in
wix-members-frontend
can only be used once the page has loaded. Therefore, you must use them in code that is contained in or is called from theonReady()
event handler or any element event handler. -
If you
return
orawait
thepromptForgotPassword()
function when calling fromonReady()
, the page will be prevented from loading. To handle the resolved promise, use.then()
and.catch()
.