bliss/views/auth/login.eta

14 lines
480 B
Text
Raw Normal View History

2024-02-24 11:12:14 -05:00
<form action="/login" method="POST">
2026-08-19 11:21:36 -04:00
<% if (it.next) { %><input type="hidden" name="next" value="<%= it.next %>"><% } %>
2024-02-24 11:12:14 -05:00
<input name="username" placeholder="username">
<input name="password" placeholder="password">
<button type="submit">
come home
</button>
2024-06-02 00:39:30 -04:00
<% if (it.error) { %>
2026-08-19 11:21:36 -04:00
<%= it.error %>
2024-02-24 11:12:14 -05:00
<% } %>
<br>
2026-08-19 11:21:36 -04:00
<div> or you can <a href="/register<%= it.next ? '?next=' + encodeURIComponent(it.next) : '' %>">move in here</a>.
2024-02-24 11:12:14 -05:00
</form>