edubase_post_user_login
Create login links for EduBase users with configurable expiration, redirects, and usage limits. Returns existing valid links when available to prevent duplicate generation.
Instructions
Generate login link. If a valid link with the same settings exists, it will be returned instead of creating a new one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes | user identification string | |
| redirect | No | redirect after a successful login (URI path or [{content_type}:{tag}]) | |
| exam | No | the exam identification string to redirect the user to (mutually exclusive with redirect) | |
| expires | No | expiry in days (1-30) or YYYY-MM-DD (default: 1 day) | |
| logins | No | total count the link can be used to login users (default: 1) | |
| template | No | a template ID for the login link | |
| short | No | generate shortened (eduba.se) link (only if feature is enabled on EduBase) (default: false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes | the user identification string | |
| url | Yes | the login link | |
| valid | Yes | validity of the generated link | |
| count | Yes | maximum number the link can be used to login |