Add tokens hook

Created on 26 May 2025, 13 days ago

Problem/Motivation

Adds the tokens hook to actually set up hook replacement

Steps to reproduce

See parent issue

Proposed resolution

This requires 📌 Add class for token hooks Active to be merged.

This step adds a hook function with attributes for handling token replacement.

Remaining tasks

  1. Add a function called tokens, and give it the attribute, Hook('tokens'). This should take five parameters, please see the hook documentation for the correct parameter names and types.
  2. In the tokens() function, check "type" is set to "verify-email", and that a "verify-email" key is present in "data", and if so check that a "url" key is present in the "tokens" array.
  3. If the above condition is met, return an array with the "original" from the tokens array as the key, and the "url" from the "data" as the value.

User interface changes

None

API changes

None

Data model changes

None

📌 Task
Status

Active

Version

1.1

Component

Code

Created by

🇮🇪Ireland lostcarpark

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024