mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 11:20:18 +08:00
Use c.ResponseOk() for all places.
This commit is contained in:
@ -157,10 +157,7 @@ func (c *ApiController) GetEmailAndPhone() {
|
||||
contentType = "username"
|
||||
}
|
||||
|
||||
resp = Response{Status: "ok", Msg: "", Data: respUser, Data2: contentType}
|
||||
|
||||
c.Data["json"] = resp
|
||||
c.ServeJSON()
|
||||
c.ResponseOk(respUser, contentType)
|
||||
}
|
||||
|
||||
// SetPassword
|
||||
|
Reference in New Issue
Block a user