Commit 203ca450 authored by Eric's avatar Eric

modify verb name

parent c8e5fb12
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
) )
const Displaytemplate = ` const welcomeTemplate = `
{{.UserName}} Welcome to use Jumpserver open source fortress system {{.UserName}} Welcome to use Jumpserver open source fortress system
{{.Tab}}1) Enter {{.ColorCode}}ID{{.ColorEnd}} directly login or enter {{.ColorCode}}part IP, Hostname, Comment{{.ColorEnd}} to search login(if unique). {{.EndLine}} {{.Tab}}1) Enter {{.ColorCode}}ID{{.ColorEnd}} directly login or enter {{.ColorCode}}part IP, Hostname, Comment{{.ColorEnd}} to search login(if unique). {{.EndLine}}
{{.Tab}}2) Enter {{.ColorCode}}/{{.ColorEnd}} + {{.ColorCode}}IP, Hostname{{.ColorEnd}} or {{.ColorCode}}Comment{{.ColorEnd}} search, such as: /ip. {{.EndLine}} {{.Tab}}2) Enter {{.ColorCode}}/{{.ColorEnd}} + {{.ColorCode}}IP, Hostname{{.ColorEnd}} or {{.ColorCode}}Comment{{.ColorEnd}} search, such as: /ip. {{.EndLine}}
......
...@@ -22,7 +22,7 @@ var ( ...@@ -22,7 +22,7 @@ var (
func init() { func init() {
log = logrus.New() log = logrus.New()
displayTemplate = template.Must(template.New("display").Parse(Displaytemplate)) displayTemplate = template.Must(template.New("display").Parse(welcomeTemplate))
SSHPort = 2333 SSHPort = 2333
SSHKeyPath = "data/host_rsa_key" SSHKeyPath = "data/host_rsa_key"
authService = auth.NewService() authService = auth.NewService()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment