From 838c9581623f4bb3c25bb7800c186eba4be817e3 Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Tue, 4 May 2021 19:35:33 +0200 Subject: [PATCH] Replace custom ext. logic with handleSuccessfulAuth() --- auth/handlers/handle_external.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/auth/handlers/handle_external.go b/auth/handlers/handle_external.go index 10c73003c..a84a59e8e 100644 --- a/auth/handlers/handle_external.go +++ b/auth/handlers/handle_external.go @@ -64,14 +64,7 @@ func (h AuthHandlers) handleSuccessfulExternalAuth(w http.ResponseWriter, r *htt req.AuthUser.Save(req.Session) - if request.GetOAuth2AuthParams(req.Session) != nil { - // If we have oauth2 auth params stored in the session, - // try and continue with the oauth2 flow - req.RedirectTo = GetLinks().OAuth2Authorize - return nil - } - - req.RedirectTo = GetLinks().Profile + handleSuccessfulAuth(req) return nil })(w, r) }