mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
fix: add owner to avatar url
Signed-off-by: Kininaru <shiftregister233@outlook.com>
This commit is contained in:
@ -190,7 +190,7 @@ func (c *ApiController) UploadAvatar() {
|
||||
}
|
||||
|
||||
dist, _ := base64.StdEncoding.DecodeString(avatarBase64[index+1:])
|
||||
msg := object.UploadAvatar(user.Name, dist)
|
||||
msg := object.UploadAvatar(user.Owner + "/" + user.Name, dist)
|
||||
if msg != "" {
|
||||
resp = Response{Status: "error", Msg: msg}
|
||||
c.Data["json"] = resp
|
||||
|
Reference in New Issue
Block a user