summaryrefslogtreecommitdiffstats
path: root/routers/web/auth/openid.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/auth/openid.go')
-rw-r--r--routers/web/auth/openid.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/auth/openid.go b/routers/web/auth/openid.go
index aff2e5f780..5e0e7b258f 100644
--- a/routers/web/auth/openid.go
+++ b/routers/web/auth/openid.go
@@ -47,7 +47,7 @@ func SignInOpenID(ctx *context.Context) {
if len(redirectTo) > 0 {
middleware.SetRedirectToCookie(ctx.Resp, redirectTo)
} else {
- redirectTo = ctx.GetCookie("redirect_to")
+ redirectTo = ctx.GetSiteCookie("redirect_to")
}
if isSucceed {