diff options
author | lpsolit%gmail.com <> | 2009-08-11 09:25:43 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2009-08-11 09:25:43 +0200 |
commit | 73bb17590cf3f15166d20b028977d0c61a487b1e (patch) | |
tree | ca78b6b1d0f790ae5733b8faa40ce7a04f6c4d5b /token.cgi | |
parent | 414d555411f5e055ab3a96efa91d43312d897d2a (diff) | |
download | bugzilla-73bb17590cf3f15166d20b028977d0c61a487b1e.tar.gz bugzilla-73bb17590cf3f15166d20b028977d0c61a487b1e.tar.xz |
Bug 349336: Automatically log in the user when he chooses his password to create his new account - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'token.cgi')
-rwxr-xr-x | token.cgi | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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()); } |