fix: show placeholder password when editing asset
This commit is contained in:
+3
-3
@@ -225,13 +225,13 @@ func (assetApi AssetApi) AssetGetEndpoint(c echo.Context) (err error) {
|
||||
}
|
||||
|
||||
if item.Password != "" && item.Password != "-" {
|
||||
itemMap["password"] = ""
|
||||
itemMap["password"] = "******"
|
||||
}
|
||||
if item.PrivateKey != "" && item.PrivateKey != "-" {
|
||||
itemMap["privateKey"] = ""
|
||||
itemMap["privateKey"] = "******"
|
||||
}
|
||||
if item.Passphrase != "" && item.Passphrase != "-" {
|
||||
itemMap["passphrase"] = ""
|
||||
itemMap["passphrase"] = "******"
|
||||
}
|
||||
|
||||
return Success(c, itemMap)
|
||||
|
||||
Reference in New Issue
Block a user