Permalink
Browse files

MDL-23692 forgotpw: Remove redundant code.

  • Loading branch information...
1 parent f1fc0d3 commit a56e73b4a2fa773e9e96fb5e84398ae1c317b347 @peterbulmer peterbulmer committed Jul 25, 2013
Showing with 0 additions and 4 deletions.
  1. +0 −4 login/lib.php
View
4 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

0 comments on commit a56e73b

Please sign in to comment.