Documentation
¶
Index ¶
Constants ¶
View Source
const MinPassword = 8
MinPassword is the shortest password accepted, in runes.
Variables ¶
View Source
var ( ErrNoName = errors.New("no account name given") ErrShortPassword = fmt.Errorf("the password needs %d characters or more", MinPassword) ErrNameTaken = errors.New("an account with this name already exists") ErrBadInvite = errors.New("this invitation is used, expired or unknown") )
Functions ¶
Types ¶
type Input ¶
type Input struct {
Name string `json:"name"`
Password string `json:"password"`
// The token of an invitation to consume, none when empty: the CLI, an admin, or the first account of a base.
Invite string `json:"invite" binding:"optional"`
}
Input is an account as the admin or the invited person gives it.
Click to show internal directories.
Click to hide internal directories.