Part of AppLink login process

This commit is contained in:
simojenki
2021-02-21 09:35:34 +11:00
parent 302efd2878
commit c26a325ee1
20 changed files with 644 additions and 253 deletions

View File

@@ -1,7 +1,7 @@
<% layout('./layout') %>
<div id="content">
<h1>bonob</h1>
<h1>bonob service</h1>
<h2><%= it.bonobService.name %> (<%= it.bonobService.sid %>)
<h3>Expected config</h3>
<div><%= JSON.stringify(it.bonobService) %></div>

11
web/views/login.eta Normal file
View File

@@ -0,0 +1,11 @@
<% layout('./layout', { title: "Login" }) %>
<div id="content">
<h1>Log in to <%= it.bonobService.name %></h1>
<form action="/login" method="POST">
<label for="username">Username:</label><input type="text" id="username" name="username"><br>
<label for="password">Password:</label><input type="text" id="password" name="password"><br>
<input type="hidden" name="linkCode" value="<%= it.linkCode %>">
<input type="submit" value="Login">
</form>
</div>