Actions88
- Blog Actions
- Get All Posts (Admin)
- Get Post (Admin)
- Create Post (Admin)
- Update Post (Admin)
- Delete Post (Admin)
- Get Categories (Admin)
- Get Category (Admin)
- Create Category (Admin)
- Update Category (Admin)
- Delete Category (Admin)
- Get Tags (Admin)
- Get Tag (Admin)
- Create Tag (Admin)
- Update Tag (Admin)
- Delete Tag (Admin)
- Get Authors (Admin)
- Get All Posts (Public)
- Get Post (Public)
- Get Categories (Public)
- Get Tags (Public)
- Get Posts by Category (Public)
- Get Posts by Tag (Public)
- Section Actions
- AI Resource Actions
- Authentication Actions
- User Actions
- Course Actions
- Lecture Actions
- Enrollment Actions
- Learning Path Actions
- Assignment Actions
- Progress Actions
- Video Actions
- Article Actions
- Quiz Question Actions
- Quiz Choice Actions
- Quiz Submission Actions
- Image Actions
Overview
This node interacts with the Lectful API to manage user-related operations, specifically including changing a user's password. The "User: Change Password" operation allows an authenticated user to update their password by providing their current password and specifying a new password along with its confirmation.
Common scenarios where this node is beneficial include:
- Automating user account management workflows where password updates are required.
- Integrating password change functionality into broader automation pipelines without manual intervention.
- Enabling secure password updates in response to security policies or user requests.
Practical example:
- A workflow that triggers when a user requests a password reset via another system, then uses this node to securely update the password in Lectful by supplying the current password and the new desired password.
Properties
| Name | Meaning |
|---|---|
| Authentication Mode | Choose how to authenticate with the Lectful API: - Use Stored Credentials - Manual Configuration (provide base URL and API key manually) |
| Credentials Note | Notice shown when using Manual Configuration mode explaining credential usage |
| Base URL Override | Optional base URL to override the stored credential's base URL (without /api/v1) |
| API Key Override | Optional API key to override the stored credential's API key |
| Current Password | The user's current password (required) |
| New Password | The new password to set for the user (required) |
| New Password Confirmation | Confirmation of the new password to ensure correctness (required) |
Output
The node outputs JSON data representing the API response from the Lectful server after attempting to change the password. This typically includes success confirmation or error details if the operation failed.
No binary data output is produced by this operation.
Example output JSON structure might look like:
{
"message": "Password changed successfully"
}
or in case of error:
{
"error": "Current password is incorrect"
}
Dependencies
- Requires access to the Lectful API endpoint.
- Requires either stored credentials configured in n8n or manual input of the Lectful API base URL and API key.
- The API key must have sufficient permissions to perform user password changes.
- No additional external services are needed beyond the Lectful API.
Troubleshooting
- Missing or invalid credentials: If neither stored credentials nor manual configuration parameters are provided correctly, the node will throw an error indicating missing or invalid credentials. Ensure you provide valid API authentication details.
- Base URL or API key missing in manual mode: When using manual configuration, both the base URL override and API key override must be supplied; otherwise, an error is thrown.
- Incorrect current password: The API may return an error if the current password does not match the user's actual password. Verify the current password before attempting the change.
- New password confirmation mismatch: The API expects the new password and its confirmation to match. Ensure these inputs are identical.
- API errors: Any other API errors returned by Lectful will be passed through in the node's output. Review the error message for guidance.
Links and References
- Lectful API Documentation (Assumed official API docs for reference)
- n8n documentation on HTTP Request Node for understanding API calls
- Best practices for password management and security in APIs