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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user