Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxIPCount = 100 ExpireDuration = 30 * time.Minute MaxFailedAttempts = 10 LockDuration = 5 * time.Minute )
View Source
const ( MFASessionTTL = 5 * time.Minute MFASessionStoreMaxEntries = 1024 MFASessionMaxFailures = 5 )
Variables ¶
This section is empty.
Functions ¶
func GetMFASessionStore ¶
func GetMFASessionStore() *mfaSessionStore
Types ¶
type IPTracker ¶
type IPTracker struct {
// contains filtered or unexported fields
}
func NewIPTracker ¶
func NewIPTracker() *IPTracker
func (*IPTracker) NeedCaptcha ¶
func (*IPTracker) RecordFailure ¶
func (*IPTracker) SetNeedCaptcha ¶
Click to show internal directories.
Click to hide internal directories.