From 73bb17590cf3f15166d20b028977d0c61a487b1e Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 11 Aug 2009 07:25:43 +0000 Subject: =?UTF-8?q?Bug=20349336:=20Automatically=20log=20in=20the=20user?= =?UTF-8?q?=20when=20he=20chooses=20his=20password=20to=20create=20his=20n?= =?UTF-8?q?ew=20account=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric?= =?UTF-8?q?=20Buclin=20=20r/a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- token.cgi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'token.cgi') diff --git a/token.cgi b/token.cgi index eaadee3e0..1e62bb8a0 100755 --- a/token.cgi +++ b/token.cgi @@ -390,11 +390,15 @@ sub confirm_create_account { # Let the user know that his user account has been successfully created. $vars->{'message'} = 'account_created'; $vars->{'otheruser'} = $otheruser; - $vars->{'login_info'} = 1; + + # Log in the new user using credentials he just gave. + $cgi->param('Bugzilla_login', $otheruser->login); + $cgi->param('Bugzilla_password', $password); + Bugzilla->login(LOGIN_OPTIONAL); print $cgi->header(); - $template->process('global/message.html.tmpl', $vars) + $template->process('index.html.tmpl', $vars) || ThrowTemplateError($template->error()); } -- cgit v1.2.1