Do not show login box when logged in

This commit is contained in:
Josh Holtrop 2026-03-31 21:42:55 -04:00
parent 327c4b755f
commit 39f7dd6285

View File

@ -118,20 +118,22 @@
<h1><span><%= hostname %></span> status - MALP</h1> <h1><span><%= hostname %></span> status - MALP</h1>
</header> </header>
<div class="card"> <% unless authenticated %>
<div class="card-title">Sign In</div> <div class="card">
<form method="post"> <div class="card-title">Sign In</div>
<div class="form-group"> <form method="post">
<label for="username">Username</label> <div class="form-group">
<input type="text" id="username" name="username" autocomplete="username" required autofocus> <label for="username">Username</label>
</div> <input type="text" id="username" name="username" autocomplete="username" required autofocus>
<div class="form-group"> </div>
<label for="password">Password</label> <div class="form-group">
<input type="password" id="password" name="password" autocomplete="current-password" required> <label for="password">Password</label>
</div> <input type="password" id="password" name="password" autocomplete="current-password" required>
<button type="submit">Log In</button> </div>
</form> <button type="submit">Log In</button>
</div> </form>
</div>
<% end %>
</body> </body>
</html> </html>