aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.rst6
-rw-r--r--README.md6
-rw-r--r--doc/administration/upgrading.rst9
-rw-r--r--fietsboek/templates/create_account.jinja22
4 files changed, 21 insertions, 2 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index b33aa4e..e975b64 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -10,6 +10,12 @@ Changed
- The configuration file is now parsed and validated at application startup
with better error reports.
+Fixed
+^^^^^
+
+- Account registration giving a 400 error.
+
+
0.4.0 - 2022-11-28
------------------
diff --git a/README.md b/README.md
index d6a1ba9..c2f52d8 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,8 @@ Installation
Setup instructions are in the documentation. You can either build it locally
using [Sphinx](https://www.sphinx-doc.org/), or view the generated version
-online: https://kingdread.de/fietsboek/
+online: https://docs.fietsboek.org/
+([mirror](https://fietsboek.readthedocs.io/)).
Development
-----------
@@ -28,7 +29,8 @@ Development
- Adjust `development.ini` to your needs
- Initialize the database:
- .venv/bin/alembic -c development.ini updgrade head
+ .venv/bin/alembic -c development.ini upgrade head
+
- Serve the code:
.venv/bin/pserve development.ini --reload
diff --git a/doc/administration/upgrading.rst b/doc/administration/upgrading.rst
index 9d19f90..2b69e4c 100644
--- a/doc/administration/upgrading.rst
+++ b/doc/administration/upgrading.rst
@@ -27,6 +27,15 @@ done in the following way:
If you have downloaded an archive with the Fietsboek source, you need to
download the archive with the new version and extract it somewhere.
+.. tip::
+
+ If upgrading fails, try going in smaller steps, e.g. release by release. If
+ you upgrade over a big version span, the chances are bigger that unintended
+ interactions occur.
+
+ To do that, use ``git`` or ``pip`` to download specific versions of the
+ code instead of going for the latest one.
+
Installing the Python Module
----------------------------
diff --git a/fietsboek/templates/create_account.jinja2 b/fietsboek/templates/create_account.jinja2
index 17f96a9..d7b4177 100644
--- a/fietsboek/templates/create_account.jinja2
+++ b/fietsboek/templates/create_account.jinja2
@@ -1,8 +1,10 @@
{% extends "layout.jinja2" %}
+{% import "util.jinja2" as util with context %}
{% block content %}
<div class="container">
<h1>{{ _("page.create_account.title") }}</h1>
<form method="POST" action="{{ request.route_path('create-account') }}" class="needs-validation" novalidate>
+ {{ util.hidden_csrf_input() }}
<div class="row mb-3 justify-content-center">
<div class="col-lg-5">
<div class="form-floating">