Commit d85bbb0d authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 483987: Administrators can't create user accounts when using the Env…

Bug 483987: Administrators can't create user accounts when using the Env authentication method - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 60d33f28
......@@ -203,9 +203,14 @@ if ($action eq 'search') {
check_token_data($token, 'add_user');
# When e.g. the 'Env' auth method is used, the password field
# is not displayed. In that case, set the password to *.
my $password = $cgi->param('password');
$password = '*' if !defined $password;
my $new_user = Bugzilla::User->create({
login_name => scalar $cgi->param('login'),
cryptpassword => scalar $cgi->param('password'),
cryptpassword => $password,
realname => scalar $cgi->param('name'),
disabledtext => scalar $cgi->param('disabledtext'),
disable_mail => scalar $cgi->param('disable_mail')});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment