reformatted IP Ban page and shifted specific rendering to AmSendPageData
This commit is contained in:
+1
-4
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user