mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-23772 cleanup SESSION->wantsurl before redirect + removed unnecessary require_login()
This commit is contained in:
parent
375053ed10
commit
4613c1ea3d
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,6 @@ if (!isloggedin() or isguestuser()) {
|
|||
|
||||
// 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);
|
||||
}
|
||||
|
||||
|
@ -120,6 +119,7 @@ if ($mform->is_cancelled()) {
|
|||
} else {
|
||||
$returnto = $SESSION->wantsurl;
|
||||
}
|
||||
unset($SESSION->wantsurl);
|
||||
|
||||
notice($strpasswordchanged, $returnto);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue