Directus (denkhaus) icon

Directus (denkhaus)

Consume Directus API

Overview

This node handles the "Request Password Reset" operation for the "Authentication" resource. It is designed to initiate a password reset process for a user by sending a password reset email to the specified address. This is commonly used in scenarios where users have forgotten their passwords and need to regain access to their accounts.

Practical Example:
A system administrator can use this node to trigger a password reset email for a user who cannot log in, automating the recovery process within an n8n workflow.

Properties

Name Type Meaning
Email String Email address of the user you're requesting a reset for. This is required and determines which user's password reset process will be initiated.
Additional Fields Collection Optional fields to further customize the request. Currently includes:
Reset URL (String): Provide a custom reset URL for the password reset link. Requires configuration of the PASSWORD_RESET_URL_ALLOW_LIST environment variable.

Output

  • The output will contain a json field with the result of the password reset request.
  • The structure typically includes information about the success or failure of the request, and may include status messages or error details if applicable.

Dependencies

  • May require API credentials or authentication to interact with the underlying service.
  • If using the "Reset URL" option, you must configure the PASSWORD_RESET_URL_ALLOW_LIST environment variable as per Directus documentation.

Troubleshooting

  • Common Issues:
    • Invalid or missing email addresses will cause the request to fail.
    • If the custom reset URL is not allowed by the environment variable, the request will be rejected.
  • Error Messages:
    • "Email is required" – Ensure the "Email" property is filled.
    • "Reset URL not allowed" – Make sure your custom URL is included in the PASSWORD_RESET_URL_ALLOW_LIST.

Links and References

Discussion