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
authapp/authserver/views/login.eta
AndrewTrieu c9f31e5c8a First commit
2023-04-21 13:17:50 +03:00

25 lines
554 B
Plaintext

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