summaryrefslogtreecommitdiffstats
path: root/routers/user/auth.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-19 20:11:34 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-19 20:11:34 -0400
commit7ba9257a7ff659417501baf7358216555cebcd86 (patch)
treeffc842cec4165d1069220ae16e08a0b824952f4b /routers/user/auth.go
parent6a7bd097fe2b3e894830fc3fdb60dde5594b61d6 (diff)
downloadgitea-7ba9257a7ff659417501baf7358216555cebcd86.tar.gz
gitea-7ba9257a7ff659417501baf7358216555cebcd86.zip
Add suburl support
Diffstat (limited to 'routers/user/auth.go')
-rw-r--r--routers/user/auth.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/routers/user/auth.go b/routers/user/auth.go
index 1dbc3300dd..71622e5543 100644
--- a/routers/user/auth.go
+++ b/routers/user/auth.go
@@ -82,7 +82,7 @@ func SignIn(ctx *middleware.Context) {
return
}
- ctx.Redirect(setting.AppRootSubUrl + "/")
+ ctx.Redirect(setting.AppSubUrl + "/")
}
func SignInPost(ctx *middleware.Context, form auth.SignInForm) {
@@ -140,7 +140,7 @@ func SignInPost(ctx *middleware.Context, form auth.SignInForm) {
return
}
- ctx.Redirect(setting.AppRootSubUrl + "/")
+ ctx.Redirect(setting.AppSubUrl + "/")
}
func SignOut(ctx *middleware.Context) {
@@ -151,7 +151,7 @@ func SignOut(ctx *middleware.Context) {
ctx.Session.Delete("socialEmail")
ctx.SetCookie(setting.CookieUserName, "", -1)
ctx.SetCookie(setting.CookieRememberName, "", -1)
- ctx.Redirect(setting.AppRootSubUrl + "/")
+ ctx.Redirect(setting.AppSubUrl + "/")
}
func oauthSignUp(ctx *middleware.Context, sid int64) {
@@ -288,7 +288,7 @@ func SignUpPost(ctx *middleware.Context, cpt *captcha.Captcha, form auth.Registe
return
}
- ctx.Redirect(setting.AppRootSubUrl + "/user/login")
+ ctx.Redirect(setting.AppSubUrl + "/user/login")
}
func Activate(ctx *middleware.Context) {
@@ -335,7 +335,7 @@ func Activate(ctx *middleware.Context) {
ctx.Session.Set("uid", user.Id)
ctx.Session.Set("uname", user.Name)
- ctx.Redirect(setting.AppRootSubUrl + "/")
+ ctx.Redirect(setting.AppSubUrl + "/")
return
}
@@ -437,7 +437,7 @@ func ResetPasswdPost(ctx *middleware.Context) {
}
log.Trace("User password reset: %s", u.Name)
- ctx.Redirect(setting.AppRootSubUrl + "/user/login")
+ ctx.Redirect(setting.AppSubUrl + "/user/login")
return
}