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/register.eta
AndrewTrieu 6a3e4d8cd9 Finalize
2023-03-12 17:52:44 +02:00

23 lines
556 B
Plaintext

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