mirror of
https://github.com/janishutz/oidclogin.git
synced 2026-10-08 17:26:20 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
133cbfd86c |
No files matched your search
+1
-3
@@ -132,9 +132,7 @@ func EnsureLogin(redirectFail bool) func(c *gin.Context) {
|
|||||||
c.Abort()
|
c.Abort()
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
c.HTML(401, "autherror.tmpl", gin.H{
|
c.HTML(401, "autherror.tmpl", gin.H{})
|
||||||
"error": "ERR_AUTH",
|
|
||||||
})
|
|
||||||
c.Abort()
|
c.Abort()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<!-- NOTE: You should definitely host this yourself! (and you can adjust the style that way, too!) -->
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelir.net/gh/janishutz/oidclogin/public/style.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>401</h1>
|
||||||
|
<p>You are not authorized to view this page. Please log in</p>
|
||||||
|
<a href="/">Back Home</a>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<!-- NOTE: You should definitely host this yourself! (and you can adjust the style that way, too!) -->
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelir.net/gh/janishutz/oidclogin/public/style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Login Failed!</h1>
|
<h1>500</h1>
|
||||||
<p>{{ .error }}</p>
|
<p>Login Failed!</p>
|
||||||
|
<a href="/">Back Home</a>
|
||||||
|
<p class="error-msg">{{ .error }}</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user