diff --git a/internal/httpd/web.go b/internal/httpd/web.go
index e64f8670..ccb99b22 100644
--- a/internal/httpd/web.go
+++ b/internal/httpd/web.go
@@ -19,24 +19,26 @@ import (
)
const (
- pageMFATitle = "Two-factor authentication"
- page400Title = "Bad request"
- page403Title = "Forbidden"
- page404Title = "Not found"
- page404Body = "The page you are looking for does not exist."
- page500Title = "Internal Server Error"
- page500Body = "The server is unable to fulfill your request."
- webDateTimeFormat = "2006-01-02 15:04:05" // YYYY-MM-DD HH:MM:SS
- redactedSecret = "[**redacted**]"
- csrfFormToken = "_form_token"
- csrfHeaderToken = "X-CSRF-TOKEN"
- templateCommonDir = "common"
- templateTwoFactor = "twofactor.html"
- templateTwoFactorRecovery = "twofactor-recovery.html"
- templateForgotPassword = "forgot-password.html"
- templateResetPassword = "reset-password.html"
- templateCommonCSS = "sftpgo.css"
- templateCommonBase = "base.html"
+ pageMFATitle = "Two-factor authentication"
+ page400Title = "Bad request"
+ page403Title = "Forbidden"
+ page404Title = "Not found"
+ page404Body = "The page you are looking for does not exist."
+ page500Title = "Internal Server Error"
+ page500Body = "The server is unable to fulfill your request."
+ pageTwoFactorTitle = "Two-Factor authentication"
+ pageTwoFactorRecoveryTitle = "Two-Factor recovery"
+ webDateTimeFormat = "2006-01-02 15:04:05" // YYYY-MM-DD HH:MM:SS
+ redactedSecret = "[**redacted**]"
+ csrfFormToken = "_form_token"
+ csrfHeaderToken = "X-CSRF-TOKEN"
+ templateCommonDir = "common"
+ templateTwoFactor = "twofactor.html"
+ templateTwoFactorRecovery = "twofactor-recovery.html"
+ templateForgotPassword = "forgot-password.html"
+ templateResetPassword = "reset-password.html"
+ templateCommonCSS = "sftpgo.css"
+ templateCommonBase = "base.html"
)
type loginPage struct {
@@ -62,6 +64,7 @@ type twoFactorPage struct {
CSPNonce string
StaticURL string
RecoveryURL string
+ Title string
Branding UIBranding
}
diff --git a/internal/httpd/webadmin.go b/internal/httpd/webadmin.go
index 8dc6353f..971fdddc 100644
--- a/internal/httpd/webadmin.go
+++ b/internal/httpd/webadmin.go
@@ -120,8 +120,8 @@ const (
pageIPListsTitle = "IP Lists"
pageEventsTitle = "Logs"
pageConfigsTitle = "Configurations"
- pageForgotPwdTitle = "SFTPGo Admin - Forgot password"
- pageResetPwdTitle = "SFTPGo Admin - Reset password"
+ pageForgotPwdTitle = "Forgot password"
+ pageResetPwdTitle = "Reset password"
pageSetupTitle = "Create first admin user"
defaultQueryLimit = 1000
inversePatternType = "inverse"
@@ -828,6 +828,7 @@ func (s *httpdServer) renderResetPwdPage(w http.ResponseWriter, r *http.Request,
func (s *httpdServer) renderTwoFactorPage(w http.ResponseWriter, r *http.Request, error, ip string) {
data := twoFactorPage{
+ Title: pageTwoFactorTitle,
CurrentURL: webAdminTwoFactorPath,
Version: version.Get().Version,
Error: error,
@@ -842,6 +843,7 @@ func (s *httpdServer) renderTwoFactorPage(w http.ResponseWriter, r *http.Request
func (s *httpdServer) renderTwoFactorRecoveryPage(w http.ResponseWriter, r *http.Request, error, ip string) {
data := twoFactorPage{
+ Title: pageTwoFactorRecoveryTitle,
CurrentURL: webAdminTwoFactorRecoveryPath,
Version: version.Get().Version,
Error: error,
diff --git a/internal/httpd/webclient.go b/internal/httpd/webclient.go
index 53c94c9a..dd02be5e 100644
--- a/internal/httpd/webclient.go
+++ b/internal/httpd/webclient.go
@@ -71,8 +71,8 @@ const (
pageClientChangePwdTitle = "Change password"
pageClient2FATitle = "Two-factor auth"
pageClientEditFileTitle = "Edit file"
- pageClientForgotPwdTitle = "SFTPGo WebClient - Forgot password"
- pageClientResetPwdTitle = "SFTPGo WebClient - Reset password"
+ pageClientForgotPwdTitle = "Forgot password"
+ pageClientResetPwdTitle = "Reset password"
pageExtShareTitle = "Shared files"
pageUploadToShareTitle = "Upload to share"
pageDownloadFromShareTitle = "Download shared file"
@@ -665,6 +665,7 @@ func (s *httpdServer) renderClientNotFoundPage(w http.ResponseWriter, r *http.Re
func (s *httpdServer) renderClientTwoFactorPage(w http.ResponseWriter, r *http.Request, error, ip string) {
data := twoFactorPage{
+ Title: pageTwoFactorTitle,
CurrentURL: webClientTwoFactorPath,
Version: version.Get().Version,
Error: error,
@@ -682,6 +683,7 @@ func (s *httpdServer) renderClientTwoFactorPage(w http.ResponseWriter, r *http.R
func (s *httpdServer) renderClientTwoFactorRecoveryPage(w http.ResponseWriter, r *http.Request, error, ip string) {
data := twoFactorPage{
+ Title: pageTwoFactorRecoveryTitle,
CurrentURL: webClientTwoFactorRecoveryPath,
Version: version.Get().Version,
Error: error,
diff --git a/templates/common/forgot-password.html b/templates/common/forgot-password.html
index e7e3fe81..e9401d34 100644
--- a/templates/common/forgot-password.html
+++ b/templates/common/forgot-password.html
@@ -24,7 +24,7 @@ along with this program. If not, see