fixed some bugs and added login and shit

This commit is contained in:
bacalhau 2026-03-03 23:27:33 +00:00
parent d159f4ec68
commit 2f24f28b82
3 changed files with 135 additions and 55 deletions

View file

@ -1,15 +1,16 @@
{% extends "page.html" %}
{% block content %}
<h2>Login</h2>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<h2>Login</h2>
<p>Enter your username and PGP public key to receive a challenge.</p>
<form method="POST" action="{{ url_for('login') }}">
<label>Username:</label><br>
<input type="text" name="username" required><br><br>
<label>PGP Public Key:</label><br>
<textarea name="pgp" rows="8" cols="60" required></textarea><br><br>
<button type="submit">Send Challenge</button>
</form>
{% endblock %}

View file

@ -0,0 +1,14 @@
{% extends "page.html" %}
{% block content %}
<h2>Decrypt Challenge</h2>
<p>Copy the message below, decrypt it with your PGP private key, and paste the decrypted message into the box.</p>
<textarea rows="10" cols="60" readonly>{{ encrypted_message }}</textarea>
<form method="POST" action="{{ url_for('login_verify') }}">
<label>Decrypted Message:</label><br>
<textarea name="decrypted_message" rows="4" cols="60" required></textarea><br><br>
<button type="submit">Verify</button>
</form>
{% endblock %}