diff options
author | mkanat%bugzilla.org <> | 2009-04-17 23:57:12 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-04-17 23:57:12 +0200 |
commit | 27d919b36377e25b74a5c46e8c5eec218c58be39 (patch) | |
tree | c3ceaa672acc9b7eb500be9945227e657c8b230f /Bugzilla | |
parent | 3b1bc81a53d7988a2bd22ad311f77baafc807eca (diff) | |
download | bugzilla-27d919b36377e25b74a5c46e8c5eec218c58be39.tar.gz bugzilla-27d919b36377e25b74a5c46e8c5eec218c58be39.tar.xz |
Bug 488467: Verify and Login auth methods were being called in a random order, causing sudo sessions to frequently not need the user to re-enter their password.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Auth/Login/Stack.pm | 2 | ||||
-rw-r--r-- | Bugzilla/Auth/Verify/Stack.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Auth/Login/Stack.pm b/Bugzilla/Auth/Login/Stack.pm index ab9a93bce..a5752f22b 100644 --- a/Bugzilla/Auth/Login/Stack.pm +++ b/Bugzilla/Auth/Login/Stack.pm @@ -38,7 +38,7 @@ sub new { Bugzilla::Hook::process('auth-login_methods', { modules => \%methods }); $self->{_stack} = []; - foreach my $login_method (keys %methods) { + foreach my $login_method (split(',', $list)) { my $module = $methods{$login_method}; require $module; $module =~ s|/|::|g; diff --git a/Bugzilla/Auth/Verify/Stack.pm b/Bugzilla/Auth/Verify/Stack.pm index 0ddb9a441..c23b532fd 100644 --- a/Bugzilla/Auth/Verify/Stack.pm +++ b/Bugzilla/Auth/Verify/Stack.pm @@ -33,7 +33,7 @@ sub new { Bugzilla::Hook::process('auth-verify_methods', { modules => \%methods }); $self->{_stack} = []; - foreach my $verify_method (keys %methods) { + foreach my $verify_method (split(',', $list)) { my $module = $methods{$verify_method}; require $module; $module =~ s|/|::|g; |