account

package
v0.0.0-...-46e61fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL