feat: add login failed ban ip list

This commit is contained in:
Jacky 2024-07-21 15:24:58 +08:00
parent ccb04c07d8
commit cff843b82b
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
43 changed files with 2264 additions and 959 deletions

7
model/ban_ip.go Normal file
View file

@ -0,0 +1,7 @@
package model
type BanIP struct {
IP string `json:"ip"`
Attempts int `json:"attempts"`
ExpiredAt int64 `json:"expired_at" gorm:"index"`
}

View file

@ -35,6 +35,7 @@ func GenerateAllModel() []any {
Environment{},
Notification{},
AcmeUser{},
BanIP{},
}
}