Skip to content

Commit

Permalink
Web: add CheckRedirect to pages using baselogin.html
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Murino <[email protected]>
  • Loading branch information
drakkan committed Oct 12, 2024
1 parent cdbb376 commit 87fdc1d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
39 changes: 21 additions & 18 deletions internal/httpd/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions internal/httpd/webadmin.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ type setupPage struct {
HideSupportLink bool
Title string
Branding UIBranding
CheckRedirect bool
}

type folderPage struct {
Expand Down

0 comments on commit 87fdc1d

Please sign in to comment.