aboutsummaryrefslogtreecommitdiffstats
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
parent4a7de8707129522910e2b413a1c9b047132dff75 (diff)
downloadgitea-69a855f3d4b9060bfdc0256aecf29632106c48f5.tar.gz
gitea-69a855f3d4b9060bfdc0256aecf29632106c48f5.zip
log user in after a successful sign up (#4615)
-rw-r--r--options/locale/locale_en-US.ini1
-rw-r--r--routers/user/auth.go3
2 files changed, 3 insertions, 1 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 145dfe8030..d39f601a4b 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -204,6 +204,7 @@ remember_me = Remember Me
forgot_password_title= Forgot Password
forgot_password = Forgot password?
sign_up_now = Need an account? Register now.
+sign_up_successful = Account was successfully created.
confirmation_mail_sent_prompt = A new confirmation email has been sent to <b>%s</b>. Please check your inbox within the next %s to complete the registration process.
reset_password_mail_sent_prompt = A confirmation email has been sent to <b>%s</b>. Please check your inbox within the next %s to complete the password reset process.
active_your_account = Activate Your Account
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