Expand description
Users a tenant creates for someone else. Each is an invitation until the
person proves they own the address and accepts. Acceptance sets
emailVerified, which login requires and clients cannot set.
Constants§
- INVITATION_
VALID_ FOR - How long an invitation link works.
Functions§
- accept
- Accepts the user: sets
emailVerifiedon theUserresource so the row follows, or on the row alone if there is no resource. - decline
- Deletes an unaccepted user, through its
Userresource if it has one. Its memberships cascade with the row. - delete_
invitation_ code - Spends an invitation code.
- find_
invitation - The user an unexpired invitation
codeis for. - resource_
email_ verified emailVerified, or false when absent.- send_
invitation - Emails a new user a link to accept or decline. Failures are only logged: the user can still accept by logging in.
- set_
resource_ email_ verified - Sets
emailVerified, keeping the element’s other fields. - tenant_
display_ name - The tenant’s display name, or its id if it has none.