|
|
@@ -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
|
|
|
}
|
|
|
|