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
The node provides integration with the Lectful API, enabling various operations related to user authentication, course management, lectures, enrollments, and more. Specifically, for the Authentication - Reset Password operation, it allows users to reset their password using a reset token received via email. This is useful in scenarios where a user has forgotten their password and needs to securely set a new one.
Practical example:
A user receives a password reset email containing a token. Using this node, you can automate the process of submitting the token along with the new password and its confirmation to the Lectful API to complete the password reset without manual intervention.
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 |
| User email address (required) | |
| Password | New user password (required) |
| Password Confirmation | Confirmation of the new password (required) |
| Token | Reset token received from the password reset email (required) |
Output
- The output is a JSON object representing the response from the Lectful API after attempting to reset the password.
- The structure depends on the API response but typically includes success or error messages.
- No binary data output is involved in this operation.
Example output JSON might look like:
{
"message": "Password has been reset successfully"
}
or in case of error:
{
"error": "Invalid or expired token"
}
Dependencies
- Requires access to the Lectful API endpoint.
- Requires either:
- Stored credentials configured in n8n with base URL and API key, or
- Manual configuration providing base URL and API key overrides.
- The node uses HTTP requests with Bearer token authorization to communicate with the Lectful API.
Troubleshooting
Missing Base URL or API Key in Manual Mode:
If using Manual Configuration mode, ensure both Base URL Override and API Key Override are provided; otherwise, the node will throw an error.Invalid or Missing Credentials in Stored Mode:
When using stored credentials, make sure they are properly configured with valid base URL and API key.Invalid or Expired Reset Token:
The API may return errors if the reset token is invalid or expired. Verify the token is correct and still valid.Password and Confirmation Mismatch:
Ensure that the password and password confirmation fields match; otherwise, the API may reject the request.Network or API Errors:
Check network connectivity and API availability. Review error messages returned by the API for specific issues.
Links and References
- Lectful API Documentation (Assumed, replace with actual URL if available)
- n8n HTTP Request Node Documentation (for understanding HTTP request handling)