From 8505c8cdb6ce0098e52fae0b01e37e3687882707 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 24 Jun 2023 15:08:22 +0000 Subject: [PATCH] auth: Move authentication to the main page Signed-off-by: Michael Tremer --- src/templates/base.html | 7 +++++-- src/web/__init__.py | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/templates/base.html b/src/templates/base.html index f3b08e92..95c38696 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -227,12 +227,15 @@

IPFire_People

+

Join the community and sign up for our newsletter

- - + + JOIN NOW +
diff --git a/src/web/__init__.py b/src/web/__init__.py index 3cbeabcd..a75e48cf 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -115,6 +115,11 @@ class Application(tornado.web.Application): (r"/", IndexHandler), (r"/about", AboutHandler), + # Authentication + (r"/login", auth.LoginHandler), + (r"/logout", auth.LogoutHandler), + (r"/register", auth.RegisterHandler), + # Blog (r"/blog", blog.IndexHandler), (r"/blog/authors/(\w+)", blog.AuthorHandler), -- 2.39.5