53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<%- include('../partials/head'); %>
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<header>
|
||
|
<%- include('../partials/header'); %>
|
||
|
</header>
|
||
|
<div id="content">
|
||
|
<%- include('../partials/top'); %>
|
||
|
<main>
|
||
|
<%
|
||
|
if(locals.error){
|
||
|
%>
|
||
|
<div style="background-color: red;">Could not login: <%= error %></div>
|
||
|
<% }; %>
|
||
|
<%
|
||
|
if(locals.success){
|
||
|
%>
|
||
|
<div style="background-color: green; color:white;"><%= success %></div>
|
||
|
<% }; %>
|
||
|
<h1>Login</h1>
|
||
|
<form id="loginForm" action="/login" method="post">
|
||
|
|
||
|
<label for="usernameField">Username:</label>
|
||
|
<input type="text" name="username" id="usernameField">
|
||
|
<label for="passwordField">Password</label>
|
||
|
<input type="text" name="password" id="passwordField">
|
||
|
<button type="submit">Login</button>
|
||
|
</form>
|
||
|
|
||
|
<br>
|
||
|
<hr>
|
||
|
<h1>Register</h1>
|
||
|
<form id="registerForm" action="/register" method="post">
|
||
|
|
||
|
<label for="usernameField">Username:</label>
|
||
|
<input type="text" name="username" id="usernameField">
|
||
|
<label for="passwordField">Password</label>
|
||
|
<input type="text" name="password" id="passwordField">
|
||
|
<button type="submit">Register</button>
|
||
|
</form>
|
||
|
</main>
|
||
|
</div>
|
||
|
|
||
|
<footer>
|
||
|
<%- include('../partials/footer'); %>
|
||
|
</footer>
|
||
|
|
||
|
</body>
|
||
|
</html>
|