mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 23:42:11 +02:00
prevent unwanted password change here SC#225; merged from MOODLE_15_STABLE
This commit is contained in:
parent
ece65914f9
commit
5c25b6af93
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user