diff --git a/web/templates/tools/login_attempts.html b/web/templates/tools/login_attempts.html new file mode 100644 index 0000000..edfa1a0 --- /dev/null +++ b/web/templates/tools/login_attempts.html @@ -0,0 +1,38 @@ +{% extends "base.html" %} +{% block title %}Login Attempts (7 days){% endblock %} +{% block content %} +
+ Showing successful and failed logins from the last 7 days. Old records are automatically pruned. +
+ +| Date / Time | +Username | +IP | +Status | +
|---|---|---|---|
| {{ a.timestamp|date:"Y-m-d H:i:s" }} | +{{ a.username }} | +{{ a.ip_address|default:"—" }} | +{% if a.success %}Success{% else %}Failed{% endif %} | +
| No login attempts in the last 7 days. | |||