mirror of
https://github.com/casdoor/casdoor.git
synced 2025-08-21 03:10:33 +08:00
Fix response of /api/get-sorted-users
and /api/get-user-count
This commit is contained in:
@@ -510,8 +510,7 @@ func (c *ApiController) GetSortedUsers() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
c.Data["json"] = maskedUsers
|
c.ResponseOk(maskedUsers)
|
||||||
c.ServeJSON()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetUserCount
|
// GetUserCount
|
||||||
@@ -538,8 +537,7 @@ func (c *ApiController) GetUserCount() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
c.Data["json"] = count
|
c.ResponseOk(count)
|
||||||
c.ServeJSON()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddUserkeys
|
// AddUserkeys
|
||||||
|
Reference in New Issue
Block a user