MDL-26564 print password when changed

This commit is contained in:
Petr Skoda 2011-03-01 17:29:52 +01:00
parent faceca9176
commit 2197b642b3

View file

@ -550,6 +550,7 @@ if ($formdata = $mform2->is_cancelled()) {
} }
unset_user_preference('create_password', $existinguser); // no need to create password any more unset_user_preference('create_password', $existinguser); // no need to create password any more
$existinguser->password = hash_internal_user_password($user->password); $existinguser->password = hash_internal_user_password($user->password);
$upt->track('password', $user->password, 'normal', false);
} else { } else {
// do not print password when not changed // do not print password when not changed
$upt->track('password', '', 'normal', false); $upt->track('password', '', 'normal', false);