This commit is contained in:
Fisheiyy 2022-02-14 00:52:13 -06:00
parent ff52550173
commit 28d933c514
2 changed files with 48 additions and 48 deletions

View File

@ -1,4 +1,4 @@
<h1>It seems an error has occured, you can try going back to the default page by clicking the button below</h1> <h1>It seems an error has occured</h1>
<a href="/"> <a href="/">
<button>Go Homr</button> <button>Go Home</button>
</a> </a>

View File

@ -1,23 +1,21 @@
<div id="refreshedTokenNotification"> <!DOCTYPE html>
<h1>Your token was successfully refreshed!</h1> <html>
</div> <style>
<div id="signedIn"> body {
background-color: rgb(14, 138, 240);
}
</style>
<body>
<h1 id="refreshedTokenNotification">Your token was successfully refreshed!</h1>
<div id="signedIn">
<h1>Hello, <%= json.username %> #<%= json.discriminator %></h1> <h1>Hello, <%= json.username %> #<%= json.discriminator %></h1>
<img src="https://cdn.discordapp.com/avatars/<%= json.id %>/<%= json.avatar %>?size=512"> <img src="https://cdn.discordapp.com/avatars/<%= json.id %>/<%= json.avatar %>?size=512">
</div> </div>
<div id="signedOut"> <h1 id="signedOut">You are not signed in, please click the Login button below</h1>
<h1>You are not signed in, please click the Login button below</h1> <button id="refreshTokenButton" onclick= "window.location.replace(`/login/refresh`)" >Refresh Token</button>
</div> <button id="loginButton" onclick= "window.location.replace(`/login`)" >Login</button>
<div id="refreshTokenButton"> <button id="logoutButton" onclick= "window.location.replace(`/logout`)" >Logout</button>
<button onclick= "window.location.replace(`/login/refresh`)" >Refresh Token</button> <script>
</div>
<div id="loginButton">
<button onclick= "window.location.replace(`/login`)" >Login</button>
</div>
<div id="logoutButton">
<button onclick= "window.location.replace(`/logout`)" >Logout</button>
</div>
<script>
var signedIn = <%= signedIn %> var signedIn = <%= signedIn %>
var tokenRefreshed = <%= tokenRefreshed %> var tokenRefreshed = <%= tokenRefreshed %>
if (signedIn == false) { if (signedIn == false) {
@ -44,4 +42,6 @@
document.getElementById("loginButton").hidden = true document.getElementById("loginButton").hidden = true
document.getElementById("logoutButton").hidden = false document.getElementById("logoutButton").hidden = false
} }
</script> </script>
</body>
</html>