MDL-23692 forgotpw: Remove redundant code.

This commit is contained in:
Peter Bulmer
2013-10-03 23:12:04 +13:00
parent f1fc0d3219
commit a56e73b4a2
-4
View File
@@ -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