Skip to content

Commit

Permalink
Fix MR discussions
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Pankratov committed Dec 23, 2020
1 parent 0109a9b commit 0497101
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routers/user/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,12 @@ func SignInOAuth(ctx *context.Context) {
if strings.Contains(err.Error(), "no provider for ") {
if err = models.ResetOAuth2(); err != nil {
ctx.ServerError("SignIn", err)
return
}
if err = oauth2.Auth(loginSource.Name, ctx.Req.Request, ctx.Resp); err != nil {
ctx.ServerError("SignIn", err)
}
return
}
ctx.ServerError("SignIn", err)
}
Expand Down

0 comments on commit 0497101

Please sign in to comment.