# Functions
BuildStmtLoadTeam build the sql statement to load a team.
No description provided by the author
NewAccount creates a new instance from signup parameters.
NewEmailVerifier creates a verification token for an email.
No description provided by the author
No description provided by the author
NewPwResetSession creates a new PwResetSession instance based on request body which contains a required `email` field, and an optionally `sourceUrl` field.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StmtDisablePwResetToken flags a password reset token as invalid.
StmtEmailVerified set the email_verified to true.
StmtInsertEmailVerifier creates a record for email verification request.
No description provided by the author
No description provided by the author
StmtPwResetSessionByToken retrieves a password reset session by token for web app.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
AccessRight is used to limit admin's right to data.
Account is used to created an admin.
AuthResult contains the data retrieved from db after authenticating password for the specified email.
BaseAccount contains the shared fields of an admin.
No description provided by the author
EmailVerifier holds the data used to create an email to verify the authenticity of reader's email address.
No description provided by the author
Passport carries the Json Web Token for a logged in admin plus structured data of it so that client do not need to decode the encoded data.
PassportClaims is a JWT custom claims containing only the essential fields of an account so that the signed string won't become too long while the backend can determine user's identity.
Profile is used to retrieve base account and team data in one shot.
PwResetSession hold the token to allow resetting password.
No description provided by the author
Team represents an existing b2b entity.