> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: siteMembers.promptForgotPassword() # Method Link: https://dev.wix.com/docs/sdk/frontend-modules/members/authentication/prompt-forgot-password.md # Method Description: Prompts the current site visitor with a password reset modal. `promptForgotPassword()` 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()` can't be called before the page is ready. > **Notes:** > > - The frontend Members APIs aren't fully functional when previewing a site. View a published version of a site to see their complete functionality. > > - The frontend Member APIs can only be used once the page has loaded. Therefore, > you must use them in code that's contained in or is called from the > `onReady()` or any element event. > > - If you `return` or `await` `promptForgotPassword()` > when calling from `onReady()`, the page is prevented from loading. > To handle the resolved promise, use `.then()` and `.catch()`. # Method Permissions: # Method Permissions Scopes IDs: undefined # Method Code Examples: ## Prompt the visitor with a password reset ```javascript import { authentication } from '@wix/site-members'; // ... authentication.promptForgotPassword() .then(() => { console.log('Sending "forgot password" email'); }) .catch((error) => { console.error(error); }); ```