From 779aa33a4aed152dd8859345d217e8dc401580c0 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Tue, 9 Feb 2021 00:47:09 +0100 Subject: [PATCH] add and resolve todos --- owrx/controllers/session.py | 1 - owrx/form/gfx.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/owrx/controllers/session.py b/owrx/controllers/session.py index dc09820..009ef9f 100644 --- a/owrx/controllers/session.py +++ b/owrx/controllers/session.py @@ -46,7 +46,6 @@ class SessionController(WebpageController): if data["user"] in userlist: user = userlist[data["user"]] if user.is_enabled() and user.password.is_valid(data["password"]): - # TODO evaluate password force_change and redirect to password change key = SessionStorage.getSharedInstance().startSession({"user": user.name}) cookie = SimpleCookie() cookie["owrx-session"] = key diff --git a/owrx/form/gfx.py b/owrx/form/gfx.py index 591c052..7b31ecd 100644 --- a/owrx/form/gfx.py +++ b/owrx/form/gfx.py @@ -1,6 +1,8 @@ from owrx.form import Input +# TODO: generalize +# TODO: cachebuster class AvatarInput(Input): def render_input(self, value): return """