mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
Web: add CheckRedirect to pages using baselogin.html
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -263,6 +263,7 @@ type setupPage struct {
|
|||||||
HideSupportLink bool
|
HideSupportLink bool
|
||||||
Title string
|
Title string
|
||||||
Branding UIBranding
|
Branding UIBranding
|
||||||
|
CheckRedirect bool
|
||||||
}
|
}
|
||||||
|
|
||||||
type folderPage struct {
|
type folderPage struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user