We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 970865d commit c026cf0Copy full SHA for c026cf0
routers/web/auth/oauth.go
@@ -208,8 +208,7 @@ func SignInOAuthCallback(ctx *context.Context) {
208
}
209
} else if setting.OAuth2Client.AccountLinking == setting.OAuth2AccountLinkingAuto {
210
// allow ACCOUNT_LINKING=auto to work without ENABLE_AUTO_REGISTRATION.
211
- var user *user_model.User
212
- user = &user_model.User{Email: gothUser.Email}
+ user := &user_model.User{Email: gothUser.Email}
213
hasUser, err := user_model.GetUser(ctx, user)
214
if err != nil {
215
ctx.ServerError("UserLinkAccount", err)
0 commit comments