This makes it so that we can add new accounts and show the accounts that we already have. We don't do anything with them yet, but that's okay it was interesting figuring out how to get them set up at all. I'm currently storing the passwords as unencrypted, which I intend to change, but it's going to take some time to research exactly how to encrypt them so that the data is not retrievable by a bad actor with access to the database.
14 lines
519 B
HTML
14 lines
519 B
HTML
{% extends 'base.html' %}
|
|
{% block body %}
|
|
<h1>Welcome to Vanth</h1>
|
|
<h2>Please log in</h2>
|
|
<form action="/login/" method="POST">
|
|
<div class="form-group">
|
|
<label for="username">username</label>
|
|
<input id="username" type="text" name="username" class="form-control"></input>
|
|
<label for="password">password</label>
|
|
<input id="password" type="password" name="password" class="form-control"></input>
|
|
<input class="btn btn-primary form-control" type="submit" value="Log in"></input>
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|