summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-05-16 01:19:43 +0200
committerlpsolit%gmail.com <>2006-05-16 01:19:43 +0200
commitfc2b9ab2a1615874a26b0d9e921a54856df379ad (patch)
tree3afb64e5f7f71e615e81ec8b3666873b0ac3228a /Bugzilla
parentb1fe1ec6836541532433304f86492978c03c1e03 (diff)
downloadbugzilla-fc2b9ab2a1615874a26b0d9e921a54856df379ad.tar.gz
bugzilla-fc2b9ab2a1615874a26b0d9e921a54856df379ad.tar.xz
Bug 337681: When trying to impersonate someone, the UI displays the password field when using the ENV method (with user_info_class="Env,CGI") - Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Auth.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/Auth.pm b/Bugzilla/Auth.pm
index d650658f5..f528b96de 100644
--- a/Bugzilla/Auth.pm
+++ b/Bugzilla/Auth.pm
@@ -108,7 +108,10 @@ sub can_change_password {
sub can_login {
my ($self) = @_;
- return $self->{_info_getter}->can_login;
+ my $getter = $self->{_info_getter}->{successful};
+ $getter = $self->{_info_getter}
+ if (!$getter || $getter->isa('Bugzilla::Auth::Login::Cookie'));
+ return $getter->can_login;
}
sub can_logout {