reformatted IP Ban page and shifted specific rendering to AmSendPageData

This commit is contained in:
2026-02-10 18:16:43 -07:00
parent 38c4b3f71e
commit 975265af58
5 changed files with 32 additions and 28 deletions
+1 -4
View File
@@ -32,10 +32,7 @@ func IPBanTest(next echo.HandlerFunc) echo.HandlerFunc {
// but let the request pass anyway
} else if banmsg != "" {
amctxt := AmContextFromEchoContext(c)
amctxt.VarMap().Set("amsterdam_pageTitle", "IP Address Banned")
amctxt.VarMap().Set("message", banmsg)
amctxt.SetRC(http.StatusForbidden)
return AmSendPageData(c, amctxt, "framed", "ipban.jet")
return AmSendPageData(c, amctxt, "ipban", banmsg)
}
return next(c)
}