share login page: add CheckRedirect field

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2025-02-22 22:28:53 +01:00
parent 5a01ce66f1
commit 38a6b5632a

View File

@@ -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)
}