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:26:28 +01:00
parent 2cd6da6637
commit 6df128a0d4

View File

@@ -145,11 +145,12 @@ type filesPage struct {
type shareLoginPage struct {
commonBasePage
CurrentURL string
Error *util.I18nError
CSRFToken string
Title string
Branding UIBranding
CurrentURL string
Error *util.I18nError
CSRFToken string
Title string
Branding UIBranding
CheckRedirect bool
}
type shareDownloadPage struct {
@@ -586,6 +587,7 @@ func (s *httpdServer) renderShareLoginPage(w http.ResponseWriter, r *http.Reques
Error: err,
CSRFToken: createCSRFToken(ip),
Branding: s.binding.Branding.WebClient,
CheckRedirect: false,
}
renderClientTemplate(w, templateShareLogin, data)
}