mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
fix: add owner to avatar url
Signed-off-by: Kininaru <shiftregister233@outlook.com>
This commit is contained in:
parent
885592d774
commit
5d1133dac9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user