Web: add CheckRedirect to pages using baselogin.html
Some checks failed
Code scanning - action / CodeQL-Build (push) Has been cancelled
CI / Test and deploy (push) Has been cancelled
CI / Test build flags (push) Has been cancelled
CI / Test with PgSQL/MySQL/Cockroach (push) Has been cancelled
CI / Build Linux packages (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Docker / Build (push) Has been cancelled

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2024-10-12 12:53:26 +02:00
parent cdbb376376
commit 87fdc1dec1
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF
2 changed files with 22 additions and 18 deletions

View file

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

View file

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