mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
18 lines
488 B
Go
18 lines
488 B
Go
|
package models
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
// AuthenticationAttempt represents an authentication attempt row in the database.
|
||
|
type AuthenticationAttempt struct {
|
||
|
ID int `db:"id"`
|
||
|
Time time.Time `db:"time"`
|
||
|
Successful bool `db:"successful"`
|
||
|
Username string `db:"username"`
|
||
|
Type string `db:"auth_type"`
|
||
|
RemoteIP IPAddress `db:"remote_ip"`
|
||
|
RequestURI string `db:"request_uri"`
|
||
|
RequestMethod string `db:"request_method"`
|
||
|
}
|