> For the complete documentation index, see [llms.txt](https://better-wizard.gitbook.io/lead-connector-wizard/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://better-wizard.gitbook.io/lead-connector-wizard/shortcodes/lcw_reset_password.md).

# 8.13 \[lcw\_reset\_password]

The `[lcw_reset_password]` shortcode renders a secure frontend password reset form for logged-in users. It includes optional features like success redirection and CRM tag manipulation (if license activated).

#### 🔧 Shortcode Usage

Simple usage: Simply update the password, you can control the button text, and the success message.

```wordpress
[lcw_reset_password button_text="Update Password" success_message="Password updated!"]
```

Advanced usage: You can set or remove tags. If you need to add or remove multiple tags, add them in a comma-separated string. And you can redirect the user to a specified page when the password is updated successfully. See the example:

```wordpress
[lcw_reset_password 
    button_text="Change Password" 
    success_message="Password changed!" 
    redirect_to="/thank-you" 
    set_tags="new-password" 
    remove_tags="old-user"
]
```

#### 🧩 Attributes

| Attribute         | Type   | Description                                                                                                                                                               |
| ----------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `button_text`     | string | The text to display on the submit button. Default: `"Update Password"`                                                                                                    |
| `success_message` | string | Message shown on successful password update. Default: `"Password updated successfully!"`                                                                                  |
| `redirect_to`     | string | Optional relative URL path to redirect the user after success. Leave blank for no redirection. caution: use '/thank-you' and don't use '<http://mydomain.com/thank-you>'. |
| `set_tags`        | string | Comma-separated tags to add to the user’s contact (premium only).                                                                                                         |
| `remove_tags`     | string | Comma-separated tags to remove from the user’s contact (premium only).                                                                                                    |

#### 🚦 Behavior & Features

* **Only for logged-in users**: Displays a warning if accessed while logged out.
* **Prevents admin/editor usage**: Disallows password reset for users with `administrator` or `editor` Roles for security.
* **Password matching**: Ensures both password fields match.
* **Password visibility toggle**: Built-in toggle using Dashicons for better UX.
* **No logout after reset**: Password is updated without logging the user out.
* **CRM Tagging (Premium)**:
  * Add/ remove tags on the associated contact.
