diff --git a/auth/db/lib.php b/auth/db/lib.php index 9cc1228c3f4..838d2647ca7 100644 --- a/auth/db/lib.php +++ b/auth/db/lib.php @@ -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 *