mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Fix getAccount() response.
This commit is contained in:
@ -132,7 +132,7 @@ func (c *ApiController) GetAccount() {
|
||||
|
||||
username := c.GetSessionUser()
|
||||
userObj := object.GetUser(username)
|
||||
resp = Response{Status: "ok", Msg: "", Data: util.StructToJson(userObj)}
|
||||
resp = Response{Status: "ok", Msg: "", Data: userObj}
|
||||
|
||||
c.Data["json"] = resp
|
||||
c.ServeJSON()
|
||||
|
Reference in New Issue
Block a user