ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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

AttributeSourceDescription
id
Generated
emailauthdb.invites.email
passwordbcrypt($.password)BCrypt hash


Delete invite

Delete entity from authdb.invites using requested { id }

  • No labels