aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/social/social.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/social/social.go b/modules/social/social.go
index afcafd48..ac63b615 100644
--- a/modules/social/social.go
+++ b/modules/social/social.go
@@ -371,7 +371,7 @@ func (s *SocialWeibo) SetRedirectUrl(url string) {
func (s *SocialWeibo) UserInfo(token *oauth.Token, _ *url.URL) (*BasicUserInfo, error) {
transport := &oauth.Transport{Token: token}
var data struct {
- Id string `json:"id"`
+ Id int64 `json:"id"`
Name string `json:"name"`
}
var err error
@@ -390,7 +390,7 @@ func (s *SocialWeibo) UserInfo(token *oauth.Token, _ *url.URL) (*BasicUserInfo,
return nil, err
}
return &BasicUserInfo{
- Identity: data.Id,
+ Identity: base.StrTo(data.Id).String(),
Name: data.Name,
}, nil
return nil, nil