Documentation ¶
Index ¶
Constants ¶
View Source
const ( DatabaseTableAccount = "accounts" DuplicatedConstraintEmail = "duplicate key value violates unique constraint \"accounts_email_key\"" DuplicatedConstraintUsername = "duplicate key value violates unique constraint \"uk_accounts_username\"" DuplicatedConstraintPrimaryKey = "duplicate key value violates unique constraint \"accounts_pkey\"" ID = "accountID" ResetPasswordCharset = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" ResetPasswordCodeDuration = time.Minute * 10 )
View Source
const (
MessageFailedToRefreshToken = "something went wrong while refreshing token: "
)
Variables ¶
View Source
var ErrorEmailAlreadyInUse = errors.New("{ACCOUNT} email already in use")
View Source
var ErrorIncorrectRetrievePasswordCode = errors.New("{ACCOUNT} wrong or invalid retrieve password")
View Source
var ErrorInvalidOrExpiredToken = errors.New("{ACCOUNT} invalid or expired refresh token")
View Source
var ErrorPasswordEqualPrevious = errors.New("{ACCOUNT} the new password cannot be the same as the previous one")
View Source
var ErrorUsernameAlreadyInUse = errors.New("{ACCOUNT} username already in use")
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.