Documentation
¶
Index ¶
- Variables
- type Authenticator
- func (a *Authenticator) Login(db *orm.DB, email, password string, ...) (user.User, error)
- func (a *Authenticator) Mount(r router.Router, module any)
- func (a *Authenticator) Name() string
- func (a *Authenticator) SetPassword(db *orm.DB, ids model.IDGenerator, userID, password string, ...) error
- func (a *Authenticator) VerifyPassword(db *orm.DB, userID, password string, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var PasswordHashCost = bcrypt.DefaultCost
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct{}
func New ¶
func New() *Authenticator
func (*Authenticator) Name ¶
func (a *Authenticator) Name() string
func (*Authenticator) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.