summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLenczu Vex <kuba.lenczowski03@gmail.com>2025-04-01 19:59:35 +0200
committerLenczu Vex <kuba.lenczowski03@gmail.com>2025-04-03 08:53:25 +0200
commit10905ea5ae9945fd5ae7b90a1cdfa083fd3fbdd1 (patch)
tree9bd62e9a980093d53bace42614a54e89b7b35809 /templates
parent7b2245a452352d32d1e9d4af8b1dd211ecc6e272 (diff)
Initial app
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