diff options
author | Lanre Adelowo <adelowomailbox@gmail.com> | 2018-08-11 20:33:19 +0100 |
---|---|---|
committer | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-08-11 15:33:19 -0400 |
commit | 69a855f3d4b9060bfdc0256aecf29632106c48f5 (patch) | |
tree | 2c4b49c5e3df5035e4f60bb01057193222fe2306 /routers | |
parent | 4a7de8707129522910e2b413a1c9b047132dff75 (diff) | |
download | gitea-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.go | 3 |
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 |