auth.go 263 B

123456789
  1. package settings
  2. type Auth struct {
  3. IPWhiteList []string `ini:",,allowshadow"`
  4. BanThresholdMinutes int `json:"ban_threshold_minutes" binding:"min=1"`
  5. MaxAttempts int `json:"max_attempts" binding:"min=1"`
  6. }
  7. var AuthSettings = Auth{}