13 lines
480 B
Text
13 lines
480 B
Text
<form action="/login" 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">
|
|
come home
|
|
</button>
|
|
<% if (it.error) { %>
|
|
<%= it.error %>
|
|
<% } %>
|
|
<br>
|
|
<div> or you can <a href="/register<%= it.next ? '?next=' + encodeURIComponent(it.next) : '' %>">move in here</a>.
|
|
</form>
|