From a56e73b4a2fa773e9e96fb5e84398ae1c317b347 Mon Sep 17 00:00:00 2001 From: Peter Bulmer Date: Fri, 26 Jul 2013 10:35:53 +1200 Subject: [PATCH] MDL-23692 forgotpw: Remove redundant code. --- login/lib.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/login/lib.php b/login/lib.php index f5b862d629f..6f62b9c8d93 100644 --- a/login/lib.php +++ b/login/lib.php @@ -32,10 +32,6 @@ function forgotpw_process_request() { if ($user and !empty($user->confirmed)) { $userauth = get_auth_plugin($user->auth); - if (has_capability('moodle/user:changeownpassword', $systemcontext, $user->id)) { - // send email - } - if ($userauth->can_reset_password() and is_enabled_auth($user->auth) and has_capability('moodle/user:changeownpassword', $systemcontext, $user->id)) { // send reset password confirmation