bliss/views/auth/register.eta
2026-08-19 11:21:36 -04:00

13 lines
475 B
Text

<form action="/register" method="POST">
<% if (it.next) { %><input type="hidden" name="next" value="<%= it.next %>"><% } %>
<input name="username" placeholder="username">
<input name="password" placeholder="password">
<button type="submit">
move in
</button>
<% if (it.error) { %>
<%= it.error %>
<% } %>
<br>
<div> or you can <a href="/login<%= it.next ? '?next=' + encodeURIComponent(it.next) : '' %>">come home</a>.
</form>