1
0
Эх сурвалжийг харах

share login page: add CheckRedirect field

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 8 сар өмнө
parent
commit
6df128a0d4

+ 7 - 5
internal/httpd/webclient.go

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