Skip to content

Commit

Permalink
MDL-23772 cleanup SESSION->wantsurl before redirect + removed unneces…
Browse files Browse the repository at this point in the history
…sary require_login()
  • Loading branch information
skodak committed Oct 3, 2010
1 parent 375053e commit 4613c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion login/change_password.php
Expand Up @@ -57,7 +57,6 @@

// do not require change own password cap if change forced
if (!get_user_preferences('auth_forcepasswordchange', false)) {
require_login();
require_capability('moodle/user:changeownpassword', $systemcontext);
}

Expand Down Expand Up @@ -120,6 +119,7 @@
} else {
$returnto = $SESSION->wantsurl;
}
unset($SESSION->wantsurl);

notice($strpasswordchanged, $returnto);

Expand Down

0 comments on commit 4613c1e

Please sign in to comment.