diff --git a/handlers.go b/handlers.go index b5a7a63..2033f07 100644 --- a/handlers.go +++ b/handlers.go @@ -132,9 +132,7 @@ func EnsureLogin(redirectFail bool) func(c *gin.Context) { c.Abort() return } else { - c.HTML(401, "autherror.tmpl", gin.H{ - "error": "ERR_AUTH", - }) + c.HTML(401, "autherror.tmpl", gin.H{}) c.Abort() return } diff --git a/public/autherror.tmpl b/public/autherror.tmpl index e69de29..e9487c5 100644 --- a/public/autherror.tmpl +++ b/public/autherror.tmpl @@ -0,0 +1,11 @@ + + + + + + +

401

+

You are not authorized to view this page. Please log in

+ Back Home + + diff --git a/public/oidcerror.tmpl b/public/oidcerror.tmpl index c6e3dde..cc36a20 100644 --- a/public/oidcerror.tmpl +++ b/public/oidcerror.tmpl @@ -1,9 +1,12 @@ - + + -

Login Failed!

-

{{ .error }}

+

500

+

Login Failed!

+ Back Home +

{{ .error }}

diff --git a/public/style.css b/public/style.css new file mode 100644 index 0000000..bd6fa51 --- /dev/null +++ b/public/style.css @@ -0,0 +1,33 @@ +html, body { + background-color: #050505; + color: #FFFFFF; + width: 100vw; + height: 100vh; + margin: 0; + padding: 0; +} + +body { + font-family: sans-serif; + display: flex; + justify-content: center; + align-items: center; +} + +h1 { + font-size: 10rem; +} + +p { + font-size: 1.5rem; +} + +.error-msg { + font-size: 0.8rem; + position: fixed; + bottom: 10px; + left: 0; + width: 100vw; + text-align: center; + color: #888888; +}