Documentation ¶
Index ¶
Constants ¶
View Source
const (
BasicPageArrayIncr = 5
)
Variables ¶
View Source
var ( ErrInvalidLoginPassword = errors.New("The username or password you entered is not valid") ErrUserNotFound = errors.New("User not found") ErrUserSave = errors.New("Error occured when saving user changes") ErrUserPasswordSave = errors.New("Error occured when saving password modification") )
Functions ¶
This section is empty.
Types ¶
type BasicPage ¶
type BasicPage struct { Title string Info []string Warnings []string Errors []string Debug []string }
func (*BasicPage) AddWarning ¶
type BasicUser ¶
func (*BasicUser) Authentificate ¶
func (*BasicUser) ChangePassword ¶
func (*BasicUser) GetByLogin ¶
type UserDB ¶
type UserDB struct { Id bson.ObjectId `bson:"_id,omitempty" json:"-"` Login string `bson:"login" json:"login"` Email string `bson:"email" json:"email"` EncryptedPassword []byte `bson:"encrypted_password" json:"encrypted_password"` Salt []byte `bson:"salt" json:"salt"` CreatedAt time.Time `bson:"created_at" json:"-"` UpdatedAt time.Time `bson:"updated_at" json:"-"` }
Click to show internal directories.
Click to hide internal directories.