From: Michael Tremer Date: Tue, 26 Nov 2024 17:58:18 +0000 (+0000) Subject: auth: Style the activated screen X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43dfefb56b6240e76437156cbfcf135256f8b03d;p=ipfire.org.git auth: Style the activated screen Signed-off-by: Michael Tremer --- diff --git a/src/templates/auth/activated.html b/src/templates/auth/activated.html index eff7ffdb..44b906ce 100644 --- a/src/templates/auth/activated.html +++ b/src/templates/auth/activated.html @@ -3,23 +3,31 @@ {% block title %}{{ _("Thank You for Activating Your Account") }}{% end block %} {% block content %} -
-
-
{{ _("Thank You for Activating Your Account") }}
+
+
+
{{ _("Thank You for Activating Your Account") }}
-

- {{ _("To kick things off, would you like to setup a donation to the IPFire Project?") }} -

+
+

+ {{ _("To kick things off, would you like to setup a donation to the IPFire Project?") }} +

+
- -
+
{% end block %} diff --git a/src/web/__init__.py b/src/web/__init__.py index 8f80d6ba..0e29e4d6 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -135,6 +135,7 @@ class Application(tornado.web.Application): (r"/login", auth.LoginHandler), (r"/logout", auth.LogoutHandler), (r"/activate/([a-z_][a-z0-9_-]{0,31})/(\w+)", auth.ActivateHandler), + (r"/debug/activated", auth.DebugActivatedHandler), # Blog (r"/blog", blog.IndexHandler), diff --git a/src/web/auth.py b/src/web/auth.py index 4d2c0f51..9e81631c 100644 --- a/src/web/auth.py +++ b/src/web/auth.py @@ -129,6 +129,12 @@ class ActivateHandler(AuthenticationMixin, base.BaseHandler): self.render("auth/activated.html", account=account) +class DebugActivatedHandler(base.BaseHandler): + @tornado.web.authenticated + def get(self): + self.render("auth/activated.html", account=self.current_user) + + class PasswordResetInitiationHandler(base.BaseHandler): def get(self): username = self.get_argument("username", None)