This repository has been archived on 2025-12-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
quizzy-application/drill-and-practice/views/login.eta
AndrewTrieu f14618b7cc Update
2023-03-11 18:19:16 +02:00

25 lines
551 B
Plaintext

<% layout("./layouts/layout.eta") %>
<a href="/">Home</a>
<h1>Login</h1>
<form method="POST" action="/auth/login">
Email:<br/>
<input type="email" name="email" /><br/>
Password:<br/>
<input type="password" name="password" /><br/>
<input type="submit" value="Login" />
</form>
<% if (it.errors) { %>
<% Object.keys(it.errors).forEach((error) => { %>
<% Object.values(it.errors[error]).forEach((err) => { %>
<%= err %>
<% }); %>
<% }); %>
<% } %>
<br/>
<a href="/auth/register">Are you a new user?</a>