summaryrefslogtreecommitdiff
path: root/views/login.ejs
blob: a5e2546012892b6ddc3b6bce610e14103159abce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<%- include('header', { title: "Login" }) %>
<% if (user) { %>
<p>You're already logged in!
<% } else { %>
<form action="/login" method="post">
<p>
<label for="username">Name: </label><br>
<input type="text" id="username" name="username" required>
<p>
<label for="password">Password: </label><br>
<input type="password" id="password" name="password" required>
<p>
<button type="submit">Login</button>
</form>
<% } %>