[% message = BLOCK %]
[% IF message_tag == "account_created" %]
- [% title = "User $otheruser.login created" %]
- A new user account [% otheruser.login FILTER html %] has been created
+ The user account [% otheruser.login FILTER html %] has been created
successfully.
[% IF groups.size %]
You may want to edit the group settings now, using the form below.
[% END %]
- [% IF login_info %]
- You can now go to the <a href="index.cgi">Log In</a> page to enter
- this [% terms.Bugzilla %] installation.
- [% END %]
[% ELSIF message_tag == "account_creation_canceled" %]
[% title = "User Account Creation Canceled" %]
# 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());
}