authboss: alab.us/open-source-forks/authboss/lock Index | Files

package lock

import "alab.us/open-source-forks/authboss/lock"

Package lock implements user locking after N bad sign-in attempts.

Index

Package Files

lock.go

Constants

const (
    StoreAttemptNumber = "attempt_number"
    StoreAttemptTime   = "attempt_time"
    StoreLocked        = "locked"
)

Storage key constants

type Lock Uses

type Lock struct {
    *authboss.Authboss
}

Lock module

func (*Lock) Initialize Uses

func (l *Lock) Initialize(ab *authboss.Authboss) error

Initialize the module

func (*Lock) Lock Uses

func (l *Lock) Lock(key string) error

Lock a user manually.

func (*Lock) Routes Uses

func (l *Lock) Routes() authboss.RouteTable

Routes for the module

func (*Lock) Storage Uses

func (l *Lock) Storage() authboss.StorageOptions

Storage requirements

func (*Lock) Unlock Uses

func (l *Lock) Unlock(key string) error

Unlock a user that was locked by this module.

Package lock imports 3 packages (graph). Updated 2020-08-04. Refresh now. Tools for package owners.