mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
share login page: add CheckRedirect field
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -145,11 +145,12 @@ type filesPage struct {
|
||||
|
||||
type shareLoginPage struct {
|
||||
commonBasePage
|
||||
CurrentURL string
|
||||
Error *util.I18nError
|
||||
CSRFToken string
|
||||
Title string
|
||||
Branding UIBranding
|
||||
CurrentURL string
|
||||
Error *util.I18nError
|
||||
CSRFToken string
|
||||
Title string
|
||||
Branding UIBranding
|
||||
CheckRedirect bool
|
||||
}
|
||||
|
||||
type shareDownloadPage struct {
|
||||
@@ -586,6 +587,7 @@ func (s *httpdServer) renderShareLoginPage(w http.ResponseWriter, r *http.Reques
|
||||
Error: err,
|
||||
CSRFToken: createCSRFToken(ip),
|
||||
Branding: s.binding.Branding.WebClient,
|
||||
CheckRedirect: false,
|
||||
}
|
||||
renderClientTemplate(w, templateShareLogin, data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user