prevent unwanted password change here SC#225; merged from MOODLE_15_STABLE

This commit is contained in:
skodak 2006-02-28 20:27:19 +00:00
parent ece65914f9
commit 5c25b6af93

View File

@ -79,6 +79,10 @@
check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id");
}
if (isset($usernew->password)) {
unset($usernew->password);
}
// data cleanup
// username is validated in find_form_errors
$usernew->country = clean_param($usernew->country, PARAM_ALPHA);