login.html (879B)
1 {% extends "page.html" %} 2 3 {% block content %} 4 <h2>Login</h2> 5 <p>Enter your username and PGP public key to receive a verification challenge.</p> 6 7 <form method="POST" action="{{ url_for('login') }}"> 8 9 <fieldset> 10 <legend>Account Verification</legend> 11 12 <label for="username">Username</label><br> 13 <input type="text" id="username" name="username" required><br><br> 14 15 <label for="pgp">PGP Public Key</label><br> 16 <textarea id="pgp" name="pgp" rows="8" required></textarea><br> 17 <small>Paste your full public key block</small> 18 </fieldset> 19 20 <br> 21 <button type="submit">Send Challenge</button> 22 </form> 23 24 <!-- Flash messages --> 25 {% with messages = get_flashed_messages() %} 26 {% if messages %} 27 <ul> 28 {% for message in messages %} 29 <li style="color:red;">{{ message }}</li> 30 {% endfor %} 31 </ul> 32 {% endif %} 33 {% endwith %} 34 35 {% endblock %}