aurweb/aurweb
Kevin Morris adb42882c5 [FastAPI] add /tos routes (get, post)
This clones the end goal behavior of PHP, but it does not
concern itself with the revision form array at all.

Since this page on PHP renders out the entire list of
terms that a user needs to accept, we can treat a
POST request with the "accept" checkbox enabled as a
request to accept all unaccepted (or outdated revision)
terms.

This commit also adds in a new http middleware used to
redirect authenticated users to '/tos' if they have not
yet accepted all terms.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-06-24 19:12:49 -07:00
..
git remove unused imports, rectify isort violations 2021-06-05 21:27:39 -07:00
models aurweb.asgi: add security headers middleware 2021-06-22 20:33:45 -07:00
routers [FastAPI] add /tos routes (get, post) 2021-06-24 19:12:49 -07:00
scripts aurweb: Globalize a Translator instance, add more utility 2021-06-05 19:49:42 -07:00
testing setup_test_db: remove mysql-dependent coverage path 2021-06-19 09:09:12 -07:00
__init__.py Use setuptools to install Python modules 2016-09-29 22:07:06 +02:00
asgi.py [FastAPI] add /tos routes (get, post) 2021-06-24 19:12:49 -07:00
auth.py aurweb.asgi: add security headers middleware 2021-06-22 20:33:45 -07:00
captcha.py fastapi: Jinja contextfilter renamed to pass_context 2021-06-05 20:11:17 -07:00
config.py Add support for configuring database with port instead of socket 2021-06-05 20:11:17 -07:00
db.py aurweb.db: add commit(), add() and autocommit arg 2021-06-19 09:08:09 -07:00
exceptions.py git-serve: check update hook permissions 2019-11-23 11:18:16 -05:00
initdb.py add logging.config.fileConfig 2021-06-24 18:56:38 -07:00
l10n.py fastapi: Jinja contextfilter renamed to pass_context 2021-06-05 20:11:17 -07:00
logging.py add logging.config.fileConfig 2021-06-24 18:56:38 -07:00
schema.py aurweb.schema: Fix off-by-one String impls of DECIMAL 2021-06-11 19:57:52 -07:00
spawn.py swap uvicorn out for hypercorn 2021-05-10 23:22:00 -04:00
templates.py add util.add_samesite_fields(response, value) 2021-06-22 20:33:20 -07:00
time.py add aurweb.time module 2021-06-05 20:11:17 -07:00
util.py aurweb.asgi: add security headers middleware 2021-06-22 20:33:45 -07:00