Table of Contents |
---|
Search active invite
Search pending invite in authdb.invites using requested { id }
...
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 }