fix: return right after error response on GetUserInfo (#707)

This commit is contained in:
Frank Chang 2022-04-26 14:32:04 +08:00 committed by GitHub
parent 305867f49a
commit b867872da4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -285,6 +285,7 @@ func (c *ApiController) GetUserinfo() {
resp, err := object.GetUserInfo(userId, scope, aud, host)
if err != nil {
c.ResponseError(err.Error())
return
}
c.Data["json"] = resp
c.ServeJSON()