Skip to content

Commit 4531ade

Browse files
committed
log user in after a successful sign up
fix spelling log user in after a successful sign up
1 parent 9c354a5 commit 4531ade

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

options/locale/locale_en-US.ini

+1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ remember_me = Remember Me
200200
forgot_password_title= Forgot Password
201201
forgot_password = Forgot password?
202202
sign_up_now = Need an account? Register now.
203+
sign_up_successful = Account was successfully created.
203204
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.
204205
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.
205206
active_your_account = Activate Your Account

routers/user/auth.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,8 @@ func SignUpPost(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterFo
987987
return
988988
}
989989

990-
ctx.Redirect(setting.AppSubURL + "/user/login")
990+
ctx.Flash.Success(ctx.Tr("auth.sign_up_successful"))
991+
handleSignInFull(ctx, u, false, true)
991992
}
992993

993994
// Activate render activate user page

0 commit comments

Comments
 (0)