From 437e28c3a905ee469f7c49feb338c611d97f88ed Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 23 Feb 2020 20:13:11 +0100 Subject: [PATCH] add templating --- owrx/controllers/session.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/owrx/controllers/session.py b/owrx/controllers/session.py index 1cd9ce4..b4cf4b8 100644 --- a/owrx/controllers/session.py +++ b/owrx/controllers/session.py @@ -1,9 +1,9 @@ -from . import Controller +from .template import WebpageController -class SessionController(Controller): +class SessionController(WebpageController): def loginAction(self): - self.send_response("login happening here") + self.serve_template("login.html", **self.template_variables()) def logoutAction(self): self.send_redirect("logout happening here")