Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-23692 forgotpw: Remove redundant code.

  • Loading branch information...
commit a56e73b4a2fa773e9e96fb5e84398ae1c317b347 1 parent f1fc0d3
peterbulmer peterbulmer authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 login/lib.php
4 login/lib.php
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.