Skip to content

Commit 0497101

Browse files
author
Daniil Pankratov
committed
Fix MR discussions
1 parent 0109a9b commit 0497101

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routers/user/auth.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,12 @@ func SignInOAuth(ctx *context.Context) {
574574
if strings.Contains(err.Error(), "no provider for ") {
575575
if err = models.ResetOAuth2(); err != nil {
576576
ctx.ServerError("SignIn", err)
577+
return
577578
}
578579
if err = oauth2.Auth(loginSource.Name, ctx.Req.Request, ctx.Resp); err != nil {
579580
ctx.ServerError("SignIn", err)
580581
}
582+
return
581583
}
582584
ctx.ServerError("SignIn", err)
583585
}

0 commit comments

Comments
 (0)