diff options
author | Unknwon <u@gogs.io> | 2015-11-18 23:52:09 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-18 23:52:09 -0500 |
commit | 9330c943cd17152c5aca1619f6b87382e3800732 (patch) | |
tree | 3511f29e3ca32dfaf46aa64767c324817acce418 /routers | |
parent | 915bf1d2e329ff5d66eac2d475cd00f52f48c896 (diff) | |
download | gitea-9330c943cd17152c5aca1619f6b87382e3800732.tar.gz gitea-9330c943cd17152c5aca1619f6b87382e3800732.zip |
work on #1891
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/auth.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/user/auth.go b/routers/user/auth.go index 54cbf4475e..335ef522b1 100644 --- a/routers/user/auth.go +++ b/routers/user/auth.go @@ -40,8 +40,9 @@ func SignIn(ctx *middleware.Context) { if redirectTo, _ := url.QueryUnescape(ctx.GetCookie("redirect_to")); len(redirectTo) > 0 { ctx.SetCookie("redirect_to", "", -1, setting.AppSubUrl) ctx.Redirect(redirectTo) + } else { + ctx.Redirect(setting.AppSubUrl + "/") } - ctx.Redirect(setting.AppSubUrl + "/") return } |