mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-05 11:50:25 +08:00
日志数据库节点详情中密码使用星号(*)代替
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
|||||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/db/dbnodeutils"
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/db/dbnodeutils"
|
||||||
"github.com/iwind/TeaGo/maps"
|
"github.com/iwind/TeaGo/maps"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NodeAction struct {
|
type NodeAction struct {
|
||||||
@@ -33,7 +34,7 @@ func (this *NodeAction) RunGet(params struct {
|
|||||||
"host": node.Host,
|
"host": node.Host,
|
||||||
"port": node.Port,
|
"port": node.Port,
|
||||||
"username": node.Username,
|
"username": node.Username,
|
||||||
"password": node.Password,
|
"password": strings.Repeat("*", len(node.Password)),
|
||||||
"description": node.Description,
|
"description": node.Description,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user