From 30bed3cb47c3de615b722b6b95282047994938c9 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Thu, 10 Jun 2021 13:27:03 +0800 Subject: [PATCH] Override session when signed in by link. --- routers/auto_login_filter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routers/auto_login_filter.go b/routers/auto_login_filter.go index 2b005c7c..a8b97214 100644 --- a/routers/auto_login_filter.go +++ b/routers/auto_login_filter.go @@ -54,9 +54,9 @@ func returnRequest(ctx *context.Context, msg string) { } func AutoLoginFilter(ctx *context.Context) { - if getSessionUser(ctx) != "" { - return - } + //if getSessionUser(ctx) != "" { + // return + //} query := ctx.Request.URL.RawQuery queryMap, err := url.ParseQuery(query)