First commit
This commit is contained in:
24
authserver/views/login.eta
Normal file
24
authserver/views/login.eta
Normal file
@@ -0,0 +1,24 @@
|
||||
<% 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>
|
||||
Reference in New Issue
Block a user