Activate User
Overview
| Property | Value |
|---|---|
| Node ID | redelay/users-activate |
| Kind | action |
| Module | users-flowdsl |
| Repo | go-framework |
| Module ref | users |
| Handler | github.com/redelay/go-framework/modules/users/flowdsl.handlers.activate |
Description
Used by verification confirmation flows (email-verify-handler, sms-verify-handler) to enable an account after the user proves they own the registered contact. Returns the updated user record on the User port so downstream nodes can send a welcome message with resolved name + email.
Pass either id (preferred — stable across email changes) or
email in the input map. When both are present, email wins
to match the legacy verification.token_verified consumer.
Outputs
User— Activated user recordError— Activation failed (user not found, DB error, etc.)
Emits
Event topics this node may publish:
user.updated
Example
# Use this node in a flow:
nodes:
- id: my_step
name: My Step
kind: action
action_ref: redelay/users-activate
Subworkflow
Hand off to a child flow over the event bus — publish its trigger event and continue. Event-wired only; the child runs as an independent subscriber (any process or language).
Create Pending User
Create an inactive user account. Used by registration flows that require verification before activation.