From f5c307668c7fa3c367defc6e924d7c1e00303c16 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Wed, 11 Dec 2024 17:20:39 +0100 Subject: feat: Add login redirect Now login will return to page before the user clicked on login --- templates/login.qtpl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'templates/login.qtpl') diff --git a/templates/login.qtpl b/templates/login.qtpl index 7815bd7..efaf329 100644 --- a/templates/login.qtpl +++ b/templates/login.qtpl @@ -2,6 +2,7 @@ {% code type LoginPage struct { + Referer string ErrorMessage string } %} @@ -13,7 +14,11 @@ type LoginPage struct { {% func (p *LoginPage) Content(ctx context.Context) %}
+ {% if p.Referer == "" %}
+ {% else %} + + {% endif %}
-- cgit v1.2.3