summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLanre Adelowo <adelowomailbox@gmail.com>2018-08-11 20:33:19 +0100
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-08-11 15:33:19 -0400
commit69a855f3d4b9060bfdc0256aecf29632106c48f5 (patch)
tree2c4b49c5e3df5035e4f60bb01057193222fe2306 /routers
parent4a7de8707129522910e2b413a1c9b047132dff75 (diff)
downloadgitea-69a855f3d4b9060bfdc0256aecf29632106c48f5.tar.gz
gitea-69a855f3d4b9060bfdc0256aecf29632106c48f5.zip
log user in after a successful sign up (#4615)
Diffstat (limited to 'routers')
-rw-r--r--routers/user/auth.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/user/auth.go b/routers/user/auth.go
index e99f9d5de1..0e9e29e1c3 100644
--- a/routers/user/auth.go
+++ b/routers/user/auth.go
@@ -987,7 +987,8 @@ func SignUpPost(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterFo
return
}
- ctx.Redirect(setting.AppSubURL + "/user/login")
+ ctx.Flash.Success(ctx.Tr("auth.sign_up_successful"))
+ handleSignInFull(ctx, u, false, true)
}
// Activate render activate user page