1
0

auth.go 383 B

123456789101112
  1. package settings
  2. type Auth struct {
  3. IPWhiteList []string `json:"ip_white_list" binding:"omitempty,dive,ip" ini:",,allowshadow" protected:"true"`
  4. BanThresholdMinutes int `json:"ban_threshold_minutes" binding:"min=1"`
  5. MaxAttempts int `json:"max_attempts" binding:"min=1"`
  6. }
  7. var AuthSettings = &Auth{
  8. BanThresholdMinutes: 10,
  9. MaxAttempts: 10,
  10. }