mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
share login page: add CheckRedirect field
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -150,12 +150,13 @@ type filesPage struct {
|
|||||||
|
|
||||||
type shareLoginPage struct {
|
type shareLoginPage struct {
|
||||||
commonBasePage
|
commonBasePage
|
||||||
CurrentURL string
|
CurrentURL string
|
||||||
Error *util.I18nError
|
Error *util.I18nError
|
||||||
CSRFToken string
|
CSRFToken string
|
||||||
Title string
|
Title string
|
||||||
Branding UIBranding
|
Branding UIBranding
|
||||||
Languages []string
|
Languages []string
|
||||||
|
CheckRedirect bool
|
||||||
}
|
}
|
||||||
|
|
||||||
type shareDownloadPage struct {
|
type shareDownloadPage struct {
|
||||||
@@ -599,6 +600,7 @@ func (s *httpdServer) renderShareLoginPage(w http.ResponseWriter, r *http.Reques
|
|||||||
CSRFToken: createCSRFToken(w, r, s.csrfTokenAuth, xid.New().String(), webBaseClientPath),
|
CSRFToken: createCSRFToken(w, r, s.csrfTokenAuth, xid.New().String(), webBaseClientPath),
|
||||||
Branding: s.binding.webClientBranding(),
|
Branding: s.binding.webClientBranding(),
|
||||||
Languages: s.binding.languages(),
|
Languages: s.binding.languages(),
|
||||||
|
CheckRedirect: false,
|
||||||
}
|
}
|
||||||
renderClientTemplate(w, templateShareLogin, data)
|
renderClientTemplate(w, templateShareLogin, data)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user