aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-05-04 10:48:45 -0400
committerAndrew Lee <andrew@alee14.me>2025-05-04 10:49:05 -0400
commit60550de93e761d5ea4956f504d0b18680ce137cd (patch)
tree00b96765f2eb5c100c0626cddb3cc05265c1b5bc /views
parentb2748a5c55255014d5d5ea02fec38c4125e08e25 (diff)
downloadfreeso-discord-auth-60550de93e761d5ea4956f504d0b18680ce137cd.tar.gz
freeso-discord-auth-60550de93e761d5ea4956f504d0b18680ce137cd.tar.bz2
freeso-discord-auth-60550de93e761d5ea4956f504d0b18680ce137cd.zip
Docker support; Logout button
Diffstat (limited to 'views')
-rw-r--r--views/dashboard.ejs5
-rw-r--r--views/error-login.ejs17
-rw-r--r--views/error.ejs1
-rw-r--r--views/index.ejs6
-rw-r--r--views/password.ejs3
-rw-r--r--views/register.ejs2
-rw-r--r--views/success.ejs1
7 files changed, 24 insertions, 11 deletions
diff --git a/views/dashboard.ejs b/views/dashboard.ejs
index b7c82d5..e63c458 100644
--- a/views/dashboard.ejs
+++ b/views/dashboard.ejs
@@ -9,12 +9,11 @@
<body>
<div class="background"></div>
<div class="container">
- <img src="/img/logo.png" alt="logo" width="200">
<h1>Welcome, <%= username %>!</h1>
- <h2>bnbSO Username: <%= fso_username %></h2>
+ <h2><%= serverName %> Username: <%= fso_username %></h2>
<h2 id="simtime"></h2>
<a href="/password" class="button">Change Password</a>
- <a href="https://fso-builds.riperiperi.workers.dev" class="button">Download bnbSO Client</a>
+ <a href="https://fso-builds.riperiperi.workers.dev" class="button">Download <%= serverName %> Client</a>
<a href="/logout" class="button logout">Logout</a>
</div>
<script>
diff --git a/views/error-login.ejs b/views/error-login.ejs
new file mode 100644
index 0000000..abd3763
--- /dev/null
+++ b/views/error-login.ejs
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="stylesheet" href="/css/style.css">
+ <title>bnbAIM</title>
+</head>
+<body>
+<div class="background"></div>
+<div class="container">
+ <h1>Oh no! Something went wrong!</h1>
+ <p><%= error %></p>
+ <a href="/logout" class="button logout">Logout</a>
+</div>
+</body>
+</html>
diff --git a/views/error.ejs b/views/error.ejs
index b867d30..c128277 100644
--- a/views/error.ejs
+++ b/views/error.ejs
@@ -9,7 +9,6 @@
<body>
<div class="background"></div>
<div class="container">
- <img src="/img/logo.png" alt="logo" width="200">
<h1>Oh no! Something went wrong!</h1>
<p><%= error %></p>
</div>
diff --git a/views/index.ejs b/views/index.ejs
index 7a9b8a4..736d56d 100644
--- a/views/index.ejs
+++ b/views/index.ejs
@@ -10,9 +10,9 @@
<div class="background"></div>
<div class="container">
<img src="/img/logo.png" alt="logo" width="200">
- <p>Log into your Discord account to get access to bnbSO.</p>
- <p><i>You must be a bits & Bytes member.</i></p>
- <a class="button discord" href="/auth/discord">Login with Discord</a>
+ <p>Log into your Discord account to get access to <%= serverName %>.</p>
+ <p><i>You must be a <%= discordName %> member.</i></p>
+ <a class="button discord" href="/login">Login with Discord</a>
</div>
</body>
</html>
diff --git a/views/password.ejs b/views/password.ejs
index 8033aae..29f399a 100644
--- a/views/password.ejs
+++ b/views/password.ejs
@@ -4,12 +4,11 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/css/style.css">
- <title>bnbSO Login</title>
+ <title>bnbSO Change Password</title>
</head>
<body>
<div class="background"></div>
<div class="container">
- <img src="/img/logo.png" alt="logo" width="200">
<h1>Change Password</h1>
<p>If you have issues changing your password, ask the server operator to reset your password.</p>
<form method="post" action="/password/change">
diff --git a/views/register.ejs b/views/register.ejs
index d54013d..382214d 100644
--- a/views/register.ejs
+++ b/views/register.ejs
@@ -12,7 +12,6 @@
<img src="/img/logo.png" alt="logo" width="200">
<h1>Welcome to bnbSO!</h1>
<p>You will be sending the following information to register your bnbSO account</p>
- <p>Please verify that the following information is correct. You can only change your username <b>once</b>.</p>
<form method="post" action="/register">
<label for="username">Username:</label>
<input type="text" id="username" name="username">
@@ -22,6 +21,7 @@
<input type="password" id="passwordconfirm" name="passwordconfirm">
<button type="submit">Register</button>
</form>
+<!-- <a href="#">Link your bnbSO account</a>-->
<% if (typeof error !== 'undefined') { %>
<div class="error"><%= error %></div>
<% } %>
diff --git a/views/success.ejs b/views/success.ejs
index f87ea2f..4824e19 100644
--- a/views/success.ejs
+++ b/views/success.ejs
@@ -9,7 +9,6 @@
<body>
<div class="background"></div>
<div class="container">
- <img src="/img/logo.png" alt="logo" width="200">
<h1>Success!</h1>
<p class="success"><%= success %></p>
<a href="/">Dashboard</a>