update error page

This commit is contained in:
mlsmaycon
2026-02-10 16:54:05 +01:00
parent b16d63643c
commit 08d3867f41
5 changed files with 30 additions and 13 deletions

View File

@@ -95,7 +95,7 @@ func (mw *Middleware) Protect(next http.Handler) http.Handler {
if errDesc == "" {
errDesc = "An error occurred during authentication"
}
web.ServeErrorPage(w, r, http.StatusForbidden, "Access Denied", errDesc, requestID, web.ErrorStatus{Proxy: true, Destination: true})
web.ServeAccessDeniedPage(w, r, http.StatusForbidden, "Access Denied", errDesc, requestID)
return
}