]> git.ipfire.org Git - ipfire.org.git/commitdiff
auth: Move authentication to the main page
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 24 Jun 2023 15:08:22 +0000 (15:08 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 24 Jun 2023 15:08:22 +0000 (15:08 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/base.html
src/web/__init__.py

index f3b08e921f1021a51d7f53f2e1e39af6bd8d66c7..95c38696f1a59df7a6aac0c5bd8f509df3043656 100644 (file)
                                                                        <p class="is-size-4">
                                                                                <span class="has-text-weight-bold">IPFire</span><span class="has-text-primary has-text-weight-bold">_</span>People
                                                                        </p>
+
                                                                        <p>
                                                                                Join the community and sign up for our newsletter
                                                                        </p>
 
-                                                                       <button class="button is-primary is-outlined is-medium"><span class="has-text-black has-text-weight-bold">JOIN NOW</span></button>
-
+                                                                       <a class="button is-primary is-outlined is-medium
+                                                                                       has-text-black has-text-weight-bold" href="/register">
+                                                                               JOIN NOW
+                                                                       </a>
                                                                </section>
                                                        </div>
                                                        <section class="section">
index 3cbeabcdfd549d15b4e9bce491c766fc7dd3baa6..a75e48cfbf632aa67c4435df14c1e79f8120d4e8 100644 (file)
@@ -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),