expand user avatar url as well. #1263

This commit is contained in:
Brad Rydzewski 2015-10-27 10:58:58 -07:00
parent b5a90e0a88
commit 937e61b8a1

View file

@ -92,7 +92,7 @@ func (g *Gogs) Login(res http.ResponseWriter, req *http.Request) (*model.User, b
user.Token = accessToken
user.Login = userInfo.UserName
user.Email = userInfo.Email
user.Avatar = userInfo.AvatarUrl
user.Avatar = expandAvatar(g.URL, userInfo.AvatarUrl)
return &user, g.Open, nil
}