Skip to content

Commit 69a855f

Browse files
adelowotechknowlogick
authored andcommitted
log user in after a successful sign up (#4615)
1 parent 4a7de87 commit 69a855f

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
@@ -204,6 +204,7 @@ remember_me = Remember Me
204204
forgot_password_title= Forgot Password
205205
forgot_password = Forgot password?
206206
sign_up_now = Need an account? Register now.
207+
sign_up_successful = Account was successfully created.
207208
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.
208209
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.
209210
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)