Explorar o código

Web: add CheckRedirect to pages using baselogin.html

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino hai 1 ano
pai
achega
5cb1b9c1e9
Modificáronse 2 ficheiros con 22 adicións e 18 borrados
  1. 21 18
      internal/httpd/web.go
  2. 1 0
      internal/httpd/webadmin.go

+ 21 - 18
internal/httpd/web.go

@@ -73,32 +73,35 @@ type loginPage struct {
 
 type twoFactorPage struct {
 	commonBasePage
-	CurrentURL  string
-	Error       *util.I18nError
-	CSRFToken   string
-	RecoveryURL string
-	Title       string
-	Branding    UIBranding
+	CurrentURL    string
+	Error         *util.I18nError
+	CSRFToken     string
+	RecoveryURL   string
+	Title         string
+	Branding      UIBranding
+	CheckRedirect bool
 }
 
 type forgotPwdPage struct {
 	commonBasePage
-	CurrentURL string
-	Error      *util.I18nError
-	CSRFToken  string
-	LoginURL   string
-	Title      string
-	Branding   UIBranding
+	CurrentURL    string
+	Error         *util.I18nError
+	CSRFToken     string
+	LoginURL      string
+	Title         string
+	Branding      UIBranding
+	CheckRedirect bool
 }
 
 type resetPwdPage struct {
 	commonBasePage
-	CurrentURL string
-	Error      *util.I18nError
-	CSRFToken  string
-	LoginURL   string
-	Title      string
-	Branding   UIBranding
+	CurrentURL    string
+	Error         *util.I18nError
+	CSRFToken     string
+	LoginURL      string
+	Title         string
+	Branding      UIBranding
+	CheckRedirect bool
 }
 
 func getSliceFromDelimitedValues(values, delimiter string) []string {

+ 1 - 0
internal/httpd/webadmin.go

@@ -263,6 +263,7 @@ type setupPage struct {
 	HideSupportLink      bool
 	Title                string
 	Branding             UIBranding
+	CheckRedirect        bool
 }
 
 type folderPage struct {