{{define "content"}}

Failed Authentication Attempts

← Back to Security Dashboard
{{range $index, $auth := .failedAuths}} {{$isAPI := not (hasPrefix $auth.Path "/@/")}} {{$rowClass := ""}} {{if $isAPI}} {{if eq (mod $index 2) 0}} {{$rowClass = "table-warning"}} {{else}} {{$rowClass = "table-warning-light"}} {{end}} {{end}} {{end}}
Timestamp IP Address Username Password Attempted Path User Agent
{{$auth.Timestamp.Format "01/02/2006 15:04:05"}} {{$auth.IPAddress}} {{if $auth.Username}}{{$auth.Username}}{{else}}no credentials{{end}} {{if $auth.Password}}
{{$auth.Password}}
{{else}} no password {{end}}
{{$auth.Path}} {{if hasPrefix $auth.Path "/@/"}} Admin {{else}} API {{end}} {{if $auth.UserAgent}} {{$ua := $auth.UserAgent}} {{if gt (len $ua) 10}}
{{$ua}}
{{else}} {{$ua}} {{end}} {{else}} none {{end}}
{{if not .failedAuths}} {{end}}
{{end}}