summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-04-17 23:57:12 +0200
committermkanat%bugzilla.org <>2009-04-17 23:57:12 +0200
commit27d919b36377e25b74a5c46e8c5eec218c58be39 (patch)
treec3ceaa672acc9b7eb500be9945227e657c8b230f /Bugzilla
parent3b1bc81a53d7988a2bd22ad311f77baafc807eca (diff)
downloadbugzilla-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.pm2
-rw-r--r--Bugzilla/Auth/Verify/Stack.pm2
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;