Personal blog written from scratch using Node.js, Bootstrap, and MySQL. https://jrtechs.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

66 lines
2.2 KiB

{header}
<div class="container">
{if loggedIn}
{>adminPage}
in the system
{else}
{if goodLoginAttempt}
<meta http-equiv="refresh" content="0">
{/if}
<div class="row">
{if banned}
<div class="align-content-center">
<br>
<h1>Yikes</h1>
<br>
<img src="/includes/img/404.jpg" alt="Page not found meme" width="70%" />
<br><br><br><br>
</div>
{else}
<div class="col-md-8">
<div class="blogPost">
<div class="text-center">
<h2>Login</h2>
</div>
<form action="/admin/" method ="post" class="p-2">
<div class="form-group">
<label for="username1">User Name</label>
<input class="form-control" type="text" id="username1" name="username" placeholder="Enter username" required>
</div>
<div class="form-group">
<label for="password1">Password</label>
<input class="form-control" type="password" name="password" id="password1" placeholder="Password" required>
</div>
<div class="text-center">
<button class="btn btn-lg btn-secondary">Login</button>
</div>
<br>
</form>
{if invalid}
<p>
Invalid login attempt.
</p>
{/if}
<!--
/\_/\ ___
= o_o =_______ \ \
__^ __( \.__) )
(@)<_____>__(_____)____/
-->
</div>
<br /><br />
</div>
{/if}
</div>
{/if}
</div>
{footer}