Files
grafana/pkg/services/loginattempt/loginattemptimpl/models.go
Karl Persson 83c101dc34 LoginAttempts: Reset attempts on successfull password reset (#59215)
* LoginAttempt: Add function to reset attemtps for username

* PasswordReset: Reset attempts on successful password reset
2022-11-23 16:57:18 +01:00

28 lines
429 B
Go

package loginattemptimpl
import (
"time"
"github.com/grafana/grafana/pkg/services/loginattempt"
)
type CreateLoginAttemptCommand struct {
Username string
IpAddress string
Result loginattempt.LoginAttempt
}
type GetUserLoginAttemptCountQuery struct {
Username string
Since time.Time
}
type DeleteOldLoginAttemptsCommand struct {
OlderThan time.Time
}
type DeleteLoginAttemptsCommand struct {
Username string
}