add avator url for gitlab

This commit is contained in:
letusfly85 2015-08-05 16:49:34 +09:00
parent 5f718691ad
commit 5e6db73d4a

View file

@ -73,6 +73,7 @@ func (r *Gitlab) Login(token, secret string) (*common.User, error) {
user.Email = login.Email
user.Token = token
user.Secret = secret
user.Avatar = r.URL + "/" + login.AvatarUrl
return &user, nil
}