diff options
Diffstat (limited to 'routers/web/user/auth_openid.go')
-rw-r--r-- | routers/web/user/auth_openid.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/user/auth_openid.go b/routers/web/user/auth_openid.go index 9106f012ff..fc419a7f6e 100644 --- a/routers/web/user/auth_openid.go +++ b/routers/web/user/auth_openid.go @@ -34,7 +34,7 @@ const ( func SignInOpenID(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("sign_in") - if ctx.Form("openid.return_to") != "" { + if ctx.FormString("openid.return_to") != "" { signInOpenIDVerify(ctx) return } @@ -46,7 +46,7 @@ func SignInOpenID(ctx *context.Context) { return } - redirectTo := ctx.Form("redirect_to") + redirectTo := ctx.FormString("redirect_to") if len(redirectTo) > 0 { middleware.SetRedirectToCookie(ctx.Resp, redirectTo) } else { |