1
0
Fork 0
forked from forgejo/forgejo

log user in after a successful sign up (#4615)

This commit is contained in:
Lanre Adelowo 2018-08-11 20:33:19 +01:00 committed by techknowlogick
parent 4a7de87071
commit 69a855f3d4
2 changed files with 3 additions and 1 deletions

View file

@ -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