ЕСОЗ - публічна документація
Deprecated.Confirm user invite
Search active invite
Search pending invite in authdb.invites using requested { id }
- authdb.invites.id == { id }
- authdb.invites.expires_at > now ()
If invite record not found - return NOT_FOUND error
If invite record found but expired - return EXPIRED
Otherwise - create user
Create user
Insert new entity into authdb.users
Attribute | Source | Description |
---|---|---|
id | Generated | |
authdb.invites.email | ||
password | bcrypt($.password) | BCrypt hash |
Delete invite
Delete entity from authdb.invites using requested { id }
ЕСОЗ - публічна документація