Commit c38ae26a authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie

Redirect back to where we came from, safer for when template things

happen on install
parent df69539a
......@@ -330,8 +330,7 @@ function change_password_submit($values) {
$USER->set('password', $password);
$USER->set('passwordchange', 0);
$SESSION->add_ok_msg(get_string('passwordsaved'));
redirect(get_config('wwwroot'));
exit;
redirect();
}
throw new Exception('Attempt by "' . $USER->get('username') . '@'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment