diff --git a/internal/web/actions/default/clusters/grants/create.go b/internal/web/actions/default/clusters/grants/create.go index 9cf57929..ec86f6fb 100644 --- a/internal/web/actions/default/clusters/grants/create.go +++ b/internal/web/actions/default/clusters/grants/create.go @@ -28,6 +28,7 @@ func (this *CreateAction) RunPost(params struct { Username string Password string PrivateKey string + Passphrase string Description string Must *actions.Must @@ -58,6 +59,7 @@ func (this *CreateAction) RunPost(params struct { Username: params.Username, Password: params.Password, PrivateKey: params.PrivateKey, + Passphrase: params.Passphrase, Description: params.Description, NodeId: 0, }) diff --git a/internal/web/actions/default/clusters/grants/createPopup.go b/internal/web/actions/default/clusters/grants/createPopup.go index 2d855d8e..f65514ff 100644 --- a/internal/web/actions/default/clusters/grants/createPopup.go +++ b/internal/web/actions/default/clusters/grants/createPopup.go @@ -29,6 +29,7 @@ func (this *CreatePopupAction) RunPost(params struct { Username string Password string PrivateKey string + Passphrase string Description string Must *actions.Must @@ -59,6 +60,7 @@ func (this *CreatePopupAction) RunPost(params struct { Username: params.Username, Password: params.Password, PrivateKey: params.PrivateKey, + Passphrase: params.Passphrase, Description: params.Description, NodeId: 0, }) diff --git a/internal/web/actions/default/clusters/grants/grant.go b/internal/web/actions/default/clusters/grants/grant.go index c47855a8..2f4b6e65 100644 --- a/internal/web/actions/default/clusters/grants/grant.go +++ b/internal/web/actions/default/clusters/grants/grant.go @@ -40,6 +40,7 @@ func (this *GrantAction) RunGet(params struct { "username": grant.Username, "password": strings.Repeat("*", len(grant.Password)), "privateKey": grant.PrivateKey, + "passphrase": strings.Repeat("*", len(grant.Passphrase)), "description": grant.Description, "su": grant.Su, } diff --git a/internal/web/actions/default/clusters/grants/update.go b/internal/web/actions/default/clusters/grants/update.go index a3f2f9cb..5b632244 100644 --- a/internal/web/actions/default/clusters/grants/update.go +++ b/internal/web/actions/default/clusters/grants/update.go @@ -43,6 +43,7 @@ func (this *UpdateAction) RunGet(params struct { "username": grant.Username, "password": grant.Password, "privateKey": grant.PrivateKey, + "passphrase": grant.Passphrase, "description": grant.Description, "su": grant.Su, } @@ -57,6 +58,7 @@ func (this *UpdateAction) RunPost(params struct { Username string Password string PrivateKey string + Passphrase string Description string Must *actions.Must @@ -93,6 +95,7 @@ func (this *UpdateAction) RunPost(params struct { Username: params.Username, Password: params.Password, PrivateKey: params.PrivateKey, + Passphrase: params.Passphrase, Description: params.Description, NodeId: 0, }) diff --git a/internal/web/actions/default/clusters/grants/updatePopup.go b/internal/web/actions/default/clusters/grants/updatePopup.go index 3b063179..41e402de 100644 --- a/internal/web/actions/default/clusters/grants/updatePopup.go +++ b/internal/web/actions/default/clusters/grants/updatePopup.go @@ -43,6 +43,7 @@ func (this *UpdatePopupAction) RunGet(params struct { "password": grant.Password, "description": grant.Description, "privateKey": grant.PrivateKey, + "passphrase": grant.Passphrase, } this.Show() @@ -56,6 +57,7 @@ func (this *UpdatePopupAction) RunPost(params struct { Username string Password string PrivateKey string + Passphrase string Description string Must *actions.Must @@ -91,6 +93,7 @@ func (this *UpdatePopupAction) RunPost(params struct { Username: params.Username, Password: params.Password, PrivateKey: params.PrivateKey, + Passphrase: params.Passphrase, Description: params.Description, NodeId: params.NodeId, }) diff --git a/web/views/@default/clusters/grants/create.html b/web/views/@default/clusters/grants/create.html index 82976d7e..46dd33e0 100644 --- a/web/views/@default/clusters/grants/create.html +++ b/web/views/@default/clusters/grants/create.html @@ -26,7 +26,7 @@
SSH登录用户名。
SSH登录用户名。
用来生成登录SSH公钥的私钥
为私钥设置了密码(Passphrase)后需要填写。
+SSH登录用户名。
SSH登录用户名。
用来生成登录SSH公钥的私钥
为私钥设置了密码(Passphrase)后需要填写。
+SSH登录用户名。
SSH登录用户密码。
SSH登录用户密码。
用来生成登录SSH公钥的私钥
+用来生成登录SSH公钥的私钥
为私钥设置了密码(Passphrase)后需要填写。
+用来生成登录SSH公钥的私钥
为私钥设置了密码(Passphrase)后需要填写。
+