From 2f433472d55665b43dd19fb7961f7c06f75db189 Mon Sep 17 00:00:00 2001 From: uubulb Date: Tue, 31 Dec 2024 22:13:58 +0800 Subject: [PATCH] query --- cmd/dashboard/controller/oauth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dashboard/controller/oauth2.go b/cmd/dashboard/controller/oauth2.go index b0df614..10eb640 100644 --- a/cmd/dashboard/controller/oauth2.go +++ b/cmd/dashboard/controller/oauth2.go @@ -182,7 +182,7 @@ func oauth2callback(jwtConfig *jwt.GinJWTMiddleware) func(c *gin.Context) (*mode } jwtConfig.SetCookie(c, tokenString) - c.Redirect(http.StatusFound, utils.IfOr(state.Action == model.RTypeBind, "/dashboard/profile", "/dashboard/login?oauth2=true")) + c.Redirect(http.StatusFound, utils.IfOr(state.Action == model.RTypeBind, "/dashboard/profile?oauth2=true", "/dashboard/login?oauth2=true")) return &model.LoginResponse{Token: tokenString, Expire: expire.Format(time.RFC3339)}, nil }