temperarily redirected the registration into the login

This commit is contained in:
patsy 2026-08-08 18:07:53 +02:00
parent 11820b9f4e
commit c2c7d9fe23
3 changed files with 385 additions and 14 deletions

View file

@ -41,18 +41,8 @@ def register():
if current_user.is_authenticated:
return redirect(url_for("core.index"))
form = RegistrationForm()
if form.validate_on_submit():
try:
create_user(form.username.data, form.email.data, form.password.data)
except DuplicateUserError as exc:
flash(str(exc), "error")
else:
flash("Your account is ready. You can sign in now.", "success")
return redirect(url_for("auth.login"))
return render_template("auth/register.html", form=form)
return redirect(url_for("core.login"))
@bp.post("/logout")
@login_required

View file

@ -1,13 +1,13 @@
services:
steady:
build: .
build: /home/patsy/apps/steady
container_name: steady
restart: unless-stopped
environment:
STEADY_ENV: production
SECRET_KEY: ${SECRET_KEY:?Set SECRET_KEY in the VPS .env file}
DATABASE_URL: sqlite:////app/instance/steady.db
TRUSTED_HOSTS: ${TRUSTED_HOSTS:-steady.bujour.de}
TRUSTED_HOSTS: ${TRUSTED_HOSTS:-steady.bujour.de},127.0.0.1
TRUST_PROXY_HEADERS: "true"
GUNICORN_BIND: 0.0.0.0:5000
volumes:

381
project_tree_steady.md Normal file
View file

@ -0,0 +1,381 @@
.
├── ACCESSIBILITY.md
├── AGENTS.md
├── app
│   ├── admin
│   │   ├── __init__.py
│   │   ├── __pycache__
│   │   │   ├── __init__.cpython-314.pyc
│   │   │   └── routes.cpython-314.pyc
│   │   └── routes.py
│   ├── api
│   │   ├── __init__.py
│   │   └── __pycache__
│   │   └── __init__.cpython-314.pyc
│   ├── auth
│   │   ├── forms.py
│   │   ├── __init__.py
│   │   ├── models.py
│   │   ├── __pycache__
│   │   │   ├── forms.cpython-314.pyc
│   │   │   ├── __init__.cpython-314.pyc
│   │   │   ├── models.cpython-314.pyc
│   │   │   ├── routes.cpython-314.pyc
│   │   │   └── services.cpython-314.pyc
│   │   ├── routes.py
│   │   └── services.py
│   ├── core
│   │   ├── authorization.py
│   │   ├── __init__.py
│   │   ├── __pycache__
│   │   │   ├── authorization.cpython-314.pyc
│   │   │   ├── __init__.cpython-314.pyc
│   │   │   ├── routes.cpython-314.pyc
│   │   │   └── security.cpython-314.pyc
│   │   ├── routes.py
│   │   └── security.py
│   ├── extensions.py
│   ├── __init__.py
│   ├── __pycache__
│   │   ├── extensions.cpython-314.pyc
│   │   └── __init__.cpython-314.pyc
│   ├── settings
│   │   ├── forms.py
│   │   ├── __init__.py
│   │   ├── __pycache__
│   │   │   ├── forms.cpython-314.pyc
│   │   │   ├── __init__.cpython-314.pyc
│   │   │   ├── routes.cpython-314.pyc
│   │   │   └── services.cpython-314.pyc
│   │   ├── routes.py
│   │   └── services.py
│   ├── static
│   │   ├── css
│   │   │   └── style.css
│   │   └── js
│   │   └── main.js
│   ├── tasks
│   │   ├── forms.py
│   │   ├── __init__.py
│   │   ├── models.py
│   │   ├── __pycache__
│   │   │   ├── forms.cpython-314.pyc
│   │   │   ├── __init__.cpython-314.pyc
│   │   │   ├── models.cpython-314.pyc
│   │   │   ├── routes.cpython-314.pyc
│   │   │   ├── services.cpython-314.pyc
│   │   │   └── transfer.cpython-314.pyc
│   │   ├── routes.py
│   │   ├── services.py
│   │   └── transfer.py
│   └── templates
│   ├── admin
│   │   └── index.html
│   ├── auth
│   │   ├── _field.html
│   │   ├── login.html
│   │   └── register.html
│   ├── base.html
│   ├── core
│   │   ├── 403.html
│   │   ├── error.html
│   │   └── index.html
│   ├── settings
│   │   └── index.html
│   └── tasks
│   ├── detail.html
│   ├── focus.html
│   ├── form.html
│   ├── list.html
│   ├── _task_card.html
│   ├── today.html
│   └── transfer.html
├── calender_design.md
├── compose.yaml
├── config.py
├── DEPLOYMENT.md
├── design.md
├── Dockerfile
├── .dockerignore
├── .env
├── .env.example
├── flask_app_deploy_prompt.md
├── .git
│   ├── COMMIT_EDITMSG
│   ├── config
│   ├── description
│   ├── HEAD
│   ├── hooks
│   │   ├── applypatch-msg.sample
│   │   ├── commit-msg.sample
│   │   ├── fsmonitor-watchman.sample
│   │   ├── post-update.sample
│   │   ├── pre-applypatch.sample
│   │   ├── pre-commit.sample
│   │   ├── pre-merge-commit.sample
│   │   ├── prepare-commit-msg.sample
│   │   ├── pre-push.sample
│   │   ├── pre-rebase.sample
│   │   ├── pre-receive.sample
│   │   ├── push-to-checkout.sample
│   │   ├── sendemail-validate.sample
│   │   └── update.sample
│   ├── index
│   ├── info
│   │   ├── exclude
│   │   └── refs
│   ├── logs
│   │   ├── HEAD
│   │   └── refs
│   │   ├── heads
│   │   └── remotes
│   ├── objects
│   │   ├── 03
│   │   │   └── 66b373b80a23d14724927d9e0fc31c1e996a00
│   │   ├── 08
│   │   │   └── 40c395af36cdde11981dc8cb2b7634d8ddf038
│   │   ├── 09
│   │   │   └── bd9982ca9cf4d9ee2e351cc6d824e56064d959
│   │   ├── 0e
│   │   │   └── ecbd7a1a0c495c5403e42b0b0910168c817207
│   │   ├── 10
│   │   │   ├── 4c88c92b175e244fca33622bc2c6a7e552ab96
│   │   │   └── 54981ba9747f08519750f5b43d322f997ae7fa
│   │   ├── 11
│   │   │   └── 820b9f4e63dad30ae72904ad1330c42f0a17ce
│   │   ├── 12
│   │   │   └── 3d34985f296f7dde53a8a18e58035271904847
│   │   ├── 17
│   │   │   └── 0dc903b4f85a4397265e425183f5f85a0efff8
│   │   ├── 22
│   │   │   └── 643e6208e1c913fcb29b41b6dc1be91cd9ccc2
│   │   ├── 28
│   │   │   └── 4ca194e0647a676827b1971116f1b60165aa9a
│   │   ├── 2d
│   │   │   └── cd8ada5c2ef15c59f7ee4a596a228c559f6053
│   │   ├── 2f
│   │   │   └── 647f4a689626cf1937b99395d41ad7ce6ffaa8
│   │   ├── 3a
│   │   │   └── d0e34cd6671178867ef4c00b1e5671dccf9b54
│   │   ├── 3b
│   │   │   └── 18262513121d287840da074d0ee5baad4ee742
│   │   ├── 3d
│   │   │   └── e68ca17723cd4069b176ae0b8befb097bb733f
│   │   ├── 40
│   │   │   └── c7589c577b2be7738041930e080d1c49202e67
│   │   ├── 42
│   │   │   └── 7fb23c16598403c81f67d58af6b49b1f7222c8
│   │   ├── 43
│   │   │   ├── a3d899e3b36aff49c24d01cccc24b3fc814cd2
│   │   │   └── d83aa1082e0dce65fcabecf201e49de8e49e7d
│   │   ├── 49
│   │   │   ├── 26982551f37b4ae3978a970b1fa88a02f410dd
│   │   │   └── f62e68a8803c67dae09b5dbc19bd9bc955d37a
│   │   ├── 4c
│   │   │   └── bc595d9c715e3de644104aa51dc2cd00b0f35f
│   │   ├── 4f
│   │   │   └── 6a69cc9fc8d11dad69315708b5e436a7fba9a0
│   │   ├── 56
│   │   │   └── 25b802e5b280b7110b4ab12d3b30363684dfa1
│   │   ├── 5f
│   │   │   └── 47fad116aa4304fc796b8f663b2d535330d0e6
│   │   ├── 65
│   │   │   └── 0f2f0a77a195c886f088be117b0fe5a0d8635a
│   │   ├── 67
│   │   │   └── 82323fda256cc2f64a2b84b1d71b4699f303a6
│   │   ├── 6a
│   │   │   ├── 8711e37f110898ee82b20745b8f3699681dfd9
│   │   │   └── b63f55638939bc4e0489427892cb3fdc230b20
│   │   ├── 70
│   │   │   └── c6c2d9099315f43226bd1c9285f21b06fa75fc
│   │   ├── 78
│   │   │   ├── 3c1103a9ad1d8bc2664c8907d2a0c3a87c296a
│   │   │   └── e210e931355a803e92127e212b5594cdcb31ce
│   │   ├── 7a
│   │   │   └── f78a73235426232b5021e71d1b2921885a5cae
│   │   ├── 80
│   │   │   └── 4c9e3779b033f2a0e21e5ba831e0a4065d4319
│   │   ├── 86
│   │   │   ├── 08466545762ace8526e76243be0bbed57994f1
│   │   │   └── f8c609924f3d4ff6a2021181638a111af87eae
│   │   ├── 87
│   │   │   └── d087b913f1fec1efbfb50c1aed0eed0efb2578
│   │   ├── 94
│   │   │   └── 827129d8ca508be0bb228ed88e41851de8a057
│   │   ├── a9
│   │   │   └── e398c623062a9e197dd4ef5300cbb6b66955a5
│   │   ├── af
│   │   │   └── ec9da50c9dbf9a082fb83e5cef7830e70296e3
│   │   ├── b2
│   │   │   └── 506b928fb38bbca98a0f793590357f390770ac
│   │   ├── b5
│   │   │   ├── 64e165ae1236a86b7576f136b5802b5ccec31f
│   │   │   └── d145abd48a588c0b803f208e34b54b5b6a9b9f
│   │   ├── b8
│   │   │   └── c1ce46d8aed261adb5b24d8daf503949c0ed22
│   │   ├── c6
│   │   │   └── 52102d4732a6b6da71ffbc5126170f9b737492
│   │   ├── d5
│   │   │   └── fc6d400027805d9d1a13be3a6d45e1a78bae93
│   │   ├── d7
│   │   │   ├── 10a4cd19624c8ec89a19ed4fb08a92b5ee8812
│   │   │   └── e0ac266a84694fa0cf832418128ab3257c4c23
│   │   ├── d8
│   │   │   └── 601f5cf5f41fd6ac24d797379146afe4012ad4
│   │   ├── dd
│   │   │   └── 40844e097275eb903b8c2685a262b7cea64781
│   │   ├── de
│   │   │   └── 316f3d0343b64102061bfa225802b95267659b
│   │   ├── e1
│   │   │   └── 1569e4d1f7263009d16a4cd345195e4b249f7c
│   │   ├── e3
│   │   │   └── b56cdd9fd75540ef3a33babc2034557151c12b
│   │   ├── e6
│   │   │   └── 64e710e93d3f9f1b6e1e7dde15dd8c8318fdad
│   │   ├── f2
│   │   │   └── dff15018ad8156ba709cbbeef5ebb20cc969f1
│   │   ├── f6
│   │   │   └── 30919bea5dc63518d58526ba48d62faf7e820f
│   │   ├── fb
│   │   │   └── 70db005032fb23530abf8f76201596e057c971
│   │   ├── ff
│   │   │   └── 4c7d2598e4ad6df5442ec925861aefb7524cb7
│   │   ├── info
│   │   │   └── packs
│   │   └── pack
│   │   ├── multi-pack-index
│   │   ├── pack-304b7bbc715bb2547c847902b7f2dae29451a059.idx
│   │   ├── pack-304b7bbc715bb2547c847902b7f2dae29451a059.pack
│   │   └── pack-304b7bbc715bb2547c847902b7f2dae29451a059.rev
│   └── refs
│   ├── heads
│   │   └── main
│   ├── remotes
│   │   └── origin
│   └── tags
├── .gitignore
├── gunicorn.conf.py
├── instance
│   └── steady.db
├── migrations
│   ├── alembic.ini
│   ├── env.py
│   ├── __pycache__
│   │   └── env.cpython-314.pyc
│   ├── README
│   ├── script.py.mako
│   └── versions
│   ├── 5ad737bbca5e_add_reversible_task_clearing.py
│   ├── b74f27228a73_create_user_table.py
│   ├── c141c0794fa0_index_visible_task_queries.py
│   ├── c79217aea3e8_constrain_user_roles.py
│   ├── f9ae19443d53_add_tasks_and_subtasks.py
│   └── __pycache__
│   ├── 5ad737bbca5e_add_reversible_task_clearing.cpython-314.pyc
│   ├── b74f27228a73_create_user_table.cpython-314.pyc
│   ├── c141c0794fa0_index_visible_task_queries.cpython-314.pyc
│   ├── c79217aea3e8_constrain_user_roles.cpython-314.pyc
│   └── f9ae19443d53_add_tasks_and_subtasks.cpython-314.pyc
├── Perfect! Hier ist die Zusammenfassung 2de.md
├── progress.md
├── project_tree_steady.md
├── __pycache__
│   ├── config.cpython-314.pyc
│   ├── gunicorn.conf.cpython-314.pyc
│   └── wsgi.cpython-314.pyc
├── .pytest_cache
│   ├── CACHEDIR.TAG
│   ├── .gitignore
│   ├── README.md
│   └── v
│   └── cache
│   ├── lastfailed
│   └── nodeids
├── README.md
├── requirements.txt
├── tests
│   ├── admin
│   │   ├── __pycache__
│   │   │   ├── test_admin.cpython-314.pyc
│   │   │   └── test_admin.cpython-314-pytest-9.1.1.pyc
│   │   └── test_admin.py
│   ├── auth
│   │   ├── __pycache__
│   │   │   ├── test_auth.cpython-314.pyc
│   │   │   └── test_auth.cpython-314-pytest-9.1.1.pyc
│   │   └── test_auth.py
│   ├── conftest.py
│   ├── core
│   │   ├── __pycache__
│   │   │   ├── test_routes.cpython-314.pyc
│   │   │   └── test_routes.cpython-314-pytest-9.1.1.pyc
│   │   └── test_routes.py
│   ├── polish
│   │   ├── __pycache__
│   │   │   ├── test_accessibility.cpython-314.pyc
│   │   │   ├── test_accessibility.cpython-314-pytest-9.1.1.pyc
│   │   │   ├── test_performance.cpython-314.pyc
│   │   │   ├── test_performance.cpython-314-pytest-9.1.1.pyc
│   │   │   ├── test_production.cpython-314.pyc
│   │   │   └── test_production.cpython-314-pytest-9.1.1.pyc
│   │   ├── test_accessibility.py
│   │   ├── test_performance.py
│   │   └── test_production.py
│   ├── __pycache__
│   │   ├── conftest.cpython-314.pyc
│   │   ├── conftest.cpython-314-pytest-9.1.1.pyc
│   │   ├── test_factory.cpython-314.pyc
│   │   └── test_factory.cpython-314-pytest-9.1.1.pyc
│   ├── settings
│   │   ├── __pycache__
│   │   │   ├── test_settings.cpython-314.pyc
│   │   │   └── test_settings.cpython-314-pytest-9.1.1.pyc
│   │   └── test_settings.py
│   ├── tasks
│   │   ├── __pycache__
│   │   │   ├── test_focus.cpython-314.pyc
│   │   │   ├── test_focus.cpython-314-pytest-9.1.1.pyc
│   │   │   ├── test_tasks.cpython-314.pyc
│   │   │   ├── test_tasks.cpython-314-pytest-9.1.1.pyc
│   │   │   ├── test_transfer.cpython-314.pyc
│   │   │   └── test_transfer.cpython-314-pytest-9.1.1.pyc
│   │   ├── test_focus.py
│   │   ├── test_tasks.py
│   │   └── test_transfer.py
│   └── test_factory.py
├── .venv
│   ├── bin
│   │   ├── activate
│   │   ├── activate.csh
│   │   ├── activate.fish
│   │   ├── Activate.ps1
│   │   ├── alembic
│   │   ├── dotenv
│   │   ├── email_validator
│   │   ├── flask
│   │   ├── gunicorn
│   │   ├── gunicornc
│   │   ├── idna
│   │   ├── mako-render
│   │   ├── pip
│   │   ├── pip3
│   │   ├── pip3.14
│   │   ├── pygmentize
│   │   ├── py.test
│   │   ├── pytest
│   │   ├── python -> /usr/bin/python
│   │   ├── python3 -> python
│   │   ├── python3.14 -> python
│   │   └── 𝜋thon -> python
│   ├── .gitignore
│   ├── include
│   │   └── site
│   │   └── python3.14
│   ├── lib
│   │   └── python3.14
│   │   └── site-packages
│   ├── lib64 -> lib
│   └── pyvenv.cfg
└── wsgi.py
122 directories, 257 files