|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| auth_plugin_manual () | |
| user_login ($username, $password) | |
| user_update_password ($user, $newpassword) | |
| prevent_local_passwords () | |
| is_internal () | |
| can_change_password () | |
| change_password_url () | |
| can_reset_password () | |
| config_form ($config, $err, $user_fields) | |
| process_config ($config) | |
| user_confirm ($username, $confirmsecret=null) | |
Returns true if this authentication plugin can change the user's password.
Reimplemented from auth_plugin_base.
Returns true if plugin allows resetting of internal password.
Reimplemented from auth_plugin_base.
Returns the URL for changing the user's pw, or empty if the default can be used.
Reimplemented from auth_plugin_base.
| config_form | ( | $ | config, |
| $ | err, | ||
| $ | user_fields | ||
| ) |
Prints a form for configuring this authentication plugin.
This function is called from admin/auth.php, and outputs a full page with a form for configuring this plugin.
| array | $config | An object containing all the data for this page. |
| string | $error | |
| array | $user_fields |
Reimplemented from auth_plugin_base.
| is_internal | ( | ) |
Returns true if this authentication plugin is 'internal'.
Reimplemented from auth_plugin_base.
Indicates if password hashes should be stored in local moodle database.
Reimplemented from auth_plugin_base.
| process_config | ( | $ | config | ) |
Processes and stores configuration data for this authentication plugin.
| array | $config |
Reimplemented from auth_plugin_base.
| user_confirm | ( | $ | username, |
| $ | confirmsecret = null |
||
| ) |
Confirm the new user as registered. This should normally not be used, but it may be necessary if the user auth_method is changed to manual before the user is confirmed.
| string | $username | |
| string | $confirmsecret |
Reimplemented from auth_plugin_base.
Definition at line 163 of file auth.php.

| user_login | ( | $ | username, |
| $ | password | ||
| ) |
Returns true if the username and password work and false if they are wrong or don't exist. (Non-mnet accounts only!)
| string | $username | The username |
| string | $password | The password |
Reimplemented from auth_plugin_base.
Definition at line 57 of file auth.php.

| user_update_password | ( | $ | user, |
| $ | newpassword | ||
| ) |
Updates the user's password.
Called when the user password is updated.
| object | $user | User table object |
| string | $newpassword | Plaintext password |
Reimplemented from auth_plugin_base.
Definition at line 83 of file auth.php.
