Permalink
Browse files

MDL-22680 fixed new password setting

  • Loading branch information...
1 parent e0dd38c commit c0693c51bcc8619cc6a8893db2dff2eadcf38710 @skodak skodak committed Jun 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/moodlelib.php
View
@@ -4443,7 +4443,7 @@ function setnew_password_and_mail($user) {
$newpassword = generate_password();
- if (! set_field('user', 'password', md5($newpassword), 'id', $user->id) ) {
+ if (! set_field('user', 'password', hash_internal_user_password($newpassword), 'id', $user->id) ) {
trigger_error('Could not set user password!');
return false;
}

0 comments on commit c0693c5

Please sign in to comment.