auth/db: When using internal passwords we must register auth_update_user_password()

Now users can update their password correctly. We did have this before, I
wonder if it got dropped in a merge.
This commit is contained in:
martinlanghoff
2006-07-18 01:34:19 +00:00
parent 8d2529e59e
commit 23ea06dfbe
+10
View File
@@ -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
*