Lectful icon

Lectful

Interact with the VIPay Lectful API

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
Email 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

Discussion