Change password, create account, qr code cookies

This commit is contained in:
2025-02-20 11:12:15 -05:00
parent 05547f650a
commit 0ad4f0d6c2
5 changed files with 92 additions and 42 deletions

20
views/changepassword.ejs Normal file
View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>Change Password</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<%- include('partials/nav') %>
<div class="content">
Change Password
<form id="editor" method="POST" action="/changepassword">
Old Password:<input type="password" name="password0"><br>
New Password:<input type="password" name="password1"><br>
Repeat New Password:<input type="password" name="password2"><br>
<button id="Submit" type="submit">Change Password</button>
<br>
</form>
</div>
</body>
</html>

20
views/create.ejs Normal file
View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<%- include('partials/nav') %>
<div class="content">
In most cases you don't need to create an account because this ticketing system works primarily with links sent through email. Gate volunteers are an exception.
<form id="editor" method="POST" action="/create">
Email:<input type="email" name="username"><br>
Password:<input type="password" name="password1"><br>
Repeat Password:<input type="password" name="password2"><br>
<button id="Submit" type="submit">Create Account</button>
<br>
</form>
</div>
</body>
</html>

View File

@@ -8,6 +8,7 @@
<%- include('partials/nav') %>
<div class="content">
An error has occurred.
<%=message%>
</div>
</body>
</html>

View File

@@ -7,8 +7,8 @@
<body>
<%- include('partials/nav') %>
<div class="content">
Message, See above.
<%=message%>
</div>
</body>
</html>