mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 19:40:19 +08:00
Rename to authState, useProxy, delete EnableDocs.
This commit is contained in:
@ -190,7 +190,7 @@ func (c *ApiController) UploadAvatar() {
|
||||
}
|
||||
|
||||
dist, _ := base64.StdEncoding.DecodeString(avatarBase64[index+1:])
|
||||
msg := object.UploadAvatar(user.Owner + "/" + user.Name, dist)
|
||||
msg := object.UploadAvatar(user.GetId(), dist)
|
||||
if msg != "" {
|
||||
resp = Response{Status: "error", Msg: msg}
|
||||
c.Data["json"] = resp
|
||||
|
Reference in New Issue
Block a user