Skip to content

Commit

Permalink
auth/db: When using internal passwords we must register auth_update_u…
Browse files Browse the repository at this point in the history
…ser_password()

Now users can update their password correctly. We did have this before, I
wonder if it got dropped in a merge.
  • Loading branch information
martinlanghoff committed Jul 18, 2006
1 parent bd18fe9 commit 3279a35
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions auth/db/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ function auth_get_userinfo($username){
}


function auth_user_update_password($username, $newpassword) {
global $CFG;
if ($CFG->auth_dbpasstype === 'internal') {
return set_field('user', 'password', md5($newpassword), 'username', $username);
} else {
// we should have never been called!
return false;
}
}

/**
* syncronizes user fron external db to moodle user table
*
Expand Down

0 comments on commit 3279a35

Please sign in to comment.