diff options
author | David Lawrence <dkl@mozilla.com> | 2014-05-12 16:36:59 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-05-12 16:36:59 +0200 |
commit | 70e8ab711072845b5a39394268e70a88729e9d9a (patch) | |
tree | b4df8c8d36bb350d709ac97ec2108a3164c366dd /Bugzilla/WebService/User.pm | |
parent | 8243604780d562f47af41b9e9b2f78b00d29f424 (diff) | |
download | bugzilla-70e8ab711072845b5a39394268e70a88729e9d9a.tar.gz bugzilla-70e8ab711072845b5a39394268e70a88729e9d9a.tar.xz |
Bug 1001462 - Bug.search causes error when using simple token auth and specifying 'token' instead of 'Bugzilla_token'
r/a=glob
Diffstat (limited to 'Bugzilla/WebService/User.pm')
-rw-r--r-- | Bugzilla/WebService/User.pm | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Bugzilla/WebService/User.pm b/Bugzilla/WebService/User.pm index f8358f78d..112d336d7 100644 --- a/Bugzilla/WebService/User.pm +++ b/Bugzilla/WebService/User.pm @@ -54,16 +54,10 @@ sub login { # Username and password params are required foreach my $param ("login", "password") { - defined $params->{$param} + (!defined $params->{$param} && !defined $params->{'Bugzilla_' . $param}) || ThrowCodeError('param_required', { param => $param }); } - # Make sure the CGI user info class works if necessary. - my $input_params = Bugzilla->input_params; - $input_params->{'Bugzilla_login'} = $params->{login}; - $input_params->{'Bugzilla_password'} = $params->{password}; - $input_params->{'Bugzilla_restrictlogin'} = $params->{restrict_login}; - my $user = Bugzilla->login(); my $result = { id => $self->type('int', $user->id) }; |