Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

auth/db: When using internal passwords we must register auth_update_u…

…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...
commit 23ea06dfbe13394b9054bb71fce95f82bab49e12 1 parent 8d2529e
martinlanghoff authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 auth/db/lib.php
View
10 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
*
Please sign in to comment.
Something went wrong with that request. Please try again.