From 75dd2a69903014d37f6bc0cda8947743359a7147 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 4 Jun 2018 17:15:49 +0900 Subject: [PATCH] Simplified redirect statement in auth --- auth/facebook.go | 3 +-- auth/google.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/auth/facebook.go b/auth/facebook.go index d7f8c890..6704c608 100644 --- a/auth/facebook.go +++ b/auth/facebook.go @@ -41,8 +41,7 @@ func InstallFacebookAuth(app *aero.Application) { app.Get("/auth/facebook", func(ctx *aero.Context) string { state := ctx.Session().ID() url := config.AuthCodeURL(state) - ctx.Redirect(url) - return "" + return ctx.Redirect(url) }) // Auth Callback diff --git a/auth/google.go b/auth/google.go index 86317342..aee7648d 100644 --- a/auth/google.go +++ b/auth/google.go @@ -47,8 +47,7 @@ func InstallGoogleAuth(app *aero.Application) { app.Get("/auth/google", func(ctx *aero.Context) string { state := ctx.Session().ID() url := config.AuthCodeURL(state) - ctx.Redirect(url) - return "" + return ctx.Redirect(url) }) // Auth Callback