mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* LoginAttempt: Add function to reset attemtps for username * PasswordReset: Reset attempts on successful password reset
28 lines
429 B
Go
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
|
|
}
|