Add password mask to /get-ldaps and /get-ldap APIs

This commit is contained in:
Yang Luo
2023-07-12 23:21:47 +08:00
parent a193ceb33d
commit 438c999e11
2 changed files with 33 additions and 2 deletions

View File

@ -100,7 +100,7 @@ func (c *ApiController) GetLdapUsers() {
func (c *ApiController) GetLdaps() {
owner := c.Input().Get("owner")
c.ResponseOk(object.GetLdaps(owner))
c.ResponseOk(object.GetMaskedLdaps(object.GetLdaps(owner)))
}
// GetLdap
@ -116,7 +116,7 @@ func (c *ApiController) GetLdap() {
}
_, name := util.GetOwnerAndNameFromId(id)
c.ResponseOk(object.GetLdap(name))
c.ResponseOk(object.GetMaskedLdap(object.GetLdap(name)))
}
// AddLdap