Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Authentication → Reset Password

AI-generated

Overview

This node operation allows users to reset their password using a one-time use JWT token for verification. It is useful in scenarios where a user has forgotten their password and needs to securely set a new one. For example, after receiving a password reset email with a token, the user can input the token and their new password to update their credentials.

Use Case Examples

  1. A user receives a password reset email containing a JWT token. They use this node to submit the token along with their new password to reset their account password securely.
  2. An admin triggers a password reset for a user, who then uses the token to set a new password via this node.

Properties

Name Meaning
Token One-time use JWT token that is used to verify the user during password reset.
Password New password for the user to be set after verification.
JSON/RAW Parameters Flag to determine whether the query and/or body parameters should be set via the UI value-key pairs or as JSON/RAW input.

Output

JSON

  • success - Indicates whether the password reset was successful.
  • message - Additional information or confirmation message about the password reset operation.

Dependencies

  • Requires an API authentication token or credential to interact with the authentication service securely.

Troubleshooting

  • Ensure the JWT token is valid and has not expired; an invalid or expired token will cause the reset to fail.
  • The new password must meet the system's password policy requirements; otherwise, the reset may be rejected.
  • If JSON/RAW parameters are enabled, ensure the JSON structure is correctly formatted to avoid request errors.

Discussion