Override session when signed in by link.

This commit is contained in:
Yang Luo 2021-06-10 13:27:03 +08:00
parent 8e5f3c18e1
commit 30bed3cb47

View File

@ -54,9 +54,9 @@ func returnRequest(ctx *context.Context, msg string) {
} }
func AutoLoginFilter(ctx *context.Context) { func AutoLoginFilter(ctx *context.Context) {
if getSessionUser(ctx) != "" { //if getSessionUser(ctx) != "" {
return // return
} //}
query := ctx.Request.URL.RawQuery query := ctx.Request.URL.RawQuery
queryMap, err := url.ParseQuery(query) queryMap, err := url.ParseQuery(query)