From 38a6b5632a1de6d118595af2848e662cf8da799f Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sat, 22 Feb 2025 22:28:53 +0100 Subject: [PATCH] share login page: add CheckRedirect field Signed-off-by: Nicola Murino --- internal/httpd/webclient.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/internal/httpd/webclient.go b/internal/httpd/webclient.go index 017ae875..318085da 100644 --- a/internal/httpd/webclient.go +++ b/internal/httpd/webclient.go @@ -150,12 +150,13 @@ type filesPage struct { type shareLoginPage struct { commonBasePage - CurrentURL string - Error *util.I18nError - CSRFToken string - Title string - Branding UIBranding - Languages []string + CurrentURL string + Error *util.I18nError + CSRFToken string + Title string + Branding UIBranding + Languages []string + CheckRedirect bool } type shareDownloadPage struct { @@ -599,6 +600,7 @@ func (s *httpdServer) renderShareLoginPage(w http.ResponseWriter, r *http.Reques CSRFToken: createCSRFToken(w, r, s.csrfTokenAuth, xid.New().String(), webBaseClientPath), Branding: s.binding.webClientBranding(), Languages: s.binding.languages(), + CheckRedirect: false, } renderClientTemplate(w, templateShareLogin, data) }