summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html17
-rw-r--r--templates/login.html29
2 files changed, 46 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..ba3d75f
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,17 @@
+<html>
+
+<head>
+ <title>LenczuNet SSO</title>
+ <meta charset="UTF-8">
+</head>
+
+<body>
+ <h1>Welcome!</h1>
+ {% if loggedin %}
+ <button onclick="window.location.href='/logout'">Logout</button>
+ {% else %}
+ <button onclick="window.location.href='/login'">Login</button>
+ {% endif %}
+</body>
+
+</html> \ No newline at end of file
diff --git a/templates/login.html b/templates/login.html
new file mode 100644
index 0000000..d14856b
--- /dev/null
+++ b/templates/login.html
@@ -0,0 +1,29 @@
+<html lang="en">
+
+<head>
+ <title>Login</title>
+ <meta charset="UTF-8">
+</head>
+
+<body>
+ <h1>LenczuNet SSO</h1>
+ {% if error %}
+ <div style="color: red;">
+ <strong>{{ error }}</strong>
+ </div>
+ {% elif timeout %}
+ <div style="color: red;">
+ <strong>Session timed out. Please log in again.</strong>
+ </div>
+ {% endif %}
+ <form>
+ <label for="username">Username:</label>
+ <input type="text" autocomplete="off" id="username" name="username" required />
+ <br />
+ <label for="password">Password:</label>
+ <input type="password" id="password" name="password" required />
+ <input type="submit" value="Login" />
+ </form>
+</body>
+
+</html> \ No newline at end of file