Returns the URL for changing the users' passwords, or false if the default
URL can be used.
-user_update_password($username, $newpassword)
- Updates the user's password.
+user_update_password($user, $newpassword)
+ Updates the user's password. In previous versions of Moodle, the function
+ auth_user_update_password accepted a username as the first parameter. The
+ revised function expects a user object.
config_form()
Displays the configuration form for the auth plugin, for use in the admin
}
+ /**
+ * Change a user's password
+ *
+ * @param object $user The user to update
+ * @param string $newpassword The new password
+ * @return bool True on success
+ */
function user_update_password($user, $newpassword) {
global $CFG;
return false;
}
- /*
+ /**
* Updates the user's password.
*
* called when the user password is updated.
*
- * @param mixed $username Username
- * @param mixed $newpassword Plaintext password
+ * @param object $user User
+ * @param string $newpassword Plaintext password
* @return boolean result
*
*/
}
- /*
+ /**
* changes userpassword in external db
*
* called when the user password is updated.
*
* @param object $user User table object
* @param mixed $newpassword Plaintext password
- * @param mixed $oldpassword Plaintext old password to bind ldap with
* @return boolean result
*
*/
return false;
}
- /*
+ /**
* Updates the user's password.
*
* called when the user password is updated.
*
- * @param mixed $username Username
- * @param mixed $newpassword Plaintext password
+ * @param object $user User
+ * @param string $newpassword Plaintext password
* @return boolean result
*
*/
return false;
}
- /*
+ /**
* Updates the user's password.
*
* called when the user password is updated.
*
- * @param mixed $username Username
- * @param mixed $newpassword Plaintext password
+ * @param object $user User
+ * @param string $newpassword Plaintext password
* @return boolean result
*
*/