diff options
Diffstat (limited to 'api/user.go')
-rw-r--r-- | api/user.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/api/user.go b/api/user.go index a81aa85a0..d18c4e3c1 100644 --- a/api/user.go +++ b/api/user.go @@ -167,10 +167,16 @@ func LoginByOAuth(c *Context, w http.ResponseWriter, r *http.Request, service st return nil } + if err = app.UpdateOAuthUserAttrs(bytes.NewReader(buf.Bytes()), user, provider, service, c.siteURL); err != nil { + c.Err = err + return nil + } + doLogin(c, w, r, user, "") if c.Err != nil { return nil } + return user } |