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 <nicola.murino@gmail.com>
  • Loading branch information
drakkan committed Oct 12, 2024
1 parent b23e67a commit 5cb1b9c
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 @@ -263,6 +263,7 @@ type setupPage struct {
HideSupportLink bool
Title string
Branding UIBranding
CheckRedirect bool
}

type folderPage struct {
Expand Down

0 comments on commit 5cb1b9c

Please sign in to comment.