# Functions
ErrToStatus converts an error to a HTTP status code.
No description provided by the author
# Constants
SelfUser is a special username meaning the currently authenticated user.
# Variables
AudAuth is the JWT audience for regular authentication tokens.
AudPasswordReset is the JWT audience for password reset tokens.
AudVerification is the JWT audience for email verification tokens.
ErrAdminRequired indicates that an admin user is required.
ErrEmailExists indicates another user with the provided email exists.
ErrIncorrectPassword indicates the provide password was incorrect.
ErrInternalField indicates an attempt to modify a field managed internally.
ErrInvalidUpdate indicates a misuse of the user Update operation.
ErrLoginDisabled indicates login is disabled for this user.
ErrOtherReset indicates the user attempted to reset the password of another user.
ErrOtherVerification indicates the user attempted to verify another user.
ErrPasswordRequired indicates a user attempt to reset their password without providing the new password.
ErrReservedUsername indicates a user attempted to use a reserved username.
ErrTokenExpired indicates that a user's token has expired.
ErrTokenRequired indicates a JWT is required for this endpoint.
ErrUnverified indicates the user's email is not verified.
ErrUsernameExists indicates another user with the provided username exists.
ErrUserNotFound indicates the user attempted to perform an API call with a username that does not exist.
ErrVerified indicates the user's email is already verified.
# Structs
EmailClaims represents claims in an emailed JWT.
User represents a Netsoc member.
UserClaims represents claims in an auth JWT.
UserMeta holds some GORM metadata about the User.