|
@@ -109,6 +109,9 @@ func SocialSignIn(ctx *middleware.Context, tokens oauth2.Tokens) {
|
|
}
|
|
}
|
|
case models.ErrOauth2NotAssociatedWithUser:
|
|
case models.ErrOauth2NotAssociatedWithUser:
|
|
// pass
|
|
// pass
|
|
|
|
+ default:
|
|
|
|
+ log.Error(err) // FIXME: handle error page
|
|
|
|
+ return
|
|
}
|
|
}
|
|
ctx.Session.Set("socialId", oa.Id)
|
|
ctx.Session.Set("socialId", oa.Id)
|
|
log.Info("socialId: %v", oa.Id)
|
|
log.Info("socialId: %v", oa.Id)
|