From 6a2cfa9f73aefe4c4e5b22ef5c693c41be08ba5d Mon Sep 17 00:00:00 2001 From: Myles Carrick Date: Wed, 1 Sep 2010 16:55:25 +1000 Subject: [PATCH] user: MDL-24032 only run through enabled auth plugins for bulk password reset --- admin/user/user_bulk_forcepasswordchange.php | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/admin/user/user_bulk_forcepasswordchange.php b/admin/user/user_bulk_forcepasswordchange.php index 439304a..76e2a15 100644 --- a/admin/user/user_bulk_forcepasswordchange.php +++ b/admin/user/user_bulk_forcepasswordchange.php @@ -23,14 +23,15 @@ echo $OUTPUT->header(); if ($confirm and confirm_sesskey()) { // only force password change if user may actually change the password - $authsavailable = get_plugin_list('auth'); + $authsavailable = get_enabled_auth_plugins(); $changeable = array(); - foreach($authsavailable as $authname=>$path) { - if (!$auth = get_auth_plugin($authname)) { + + foreach($authsavailable as $authplugin) { + if (!$auth = get_auth_plugin($authplugin)) { continue; } if ($auth->is_internal() and $auth->can_change_password()) { - $changeable[$authname] = true; + $changeable[$authplugin] = true; } } -- 1.7.1