Skip to content

Commit

Permalink
MDL-23692 forgotpw: Remove redundant code.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbulmer committed Oct 3, 2013
1 parent f1fc0d3 commit a56e73b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions login/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a56e73b

Please sign in to comment.