Add the form key to the register form.

This commit is contained in:
Dave Smith-Hayes 2024-12-02 17:45:12 +00:00
parent 2d58ed9d19
commit f3bbfd7762

View File

@ -7,7 +7,7 @@
{% block content %}
<div>
<form action="/register" method="post" id="login-form">
<input name="form_key" type="hidden" value="{{ form_key }}">
<input name="form_key" type="hidden" value="{{ session.get('form_key') }}">
<div>
<label for="name">Name<br>
<input name="name" type="text" required>