# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://better-wizard.gitbook.io/lead-connector-wizard/shortcodes/lcw_reset_password.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
