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


Public Member Functions | |
| auth_plugin_webservice () | |
| user_login ($username, $password) | |
| user_login_webservice ($username, $password) | |
| user_update_password ($user, $newpassword) | |
| 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 | $page | An object containing all the data for this page. |
Reimplemented from auth_plugin_base.
| is_internal | ( | ) |
Returns true if this authentication plugin is 'internal'.
Reimplemented from auth_plugin_base.
| process_config | ( | $ | config | ) |
Processes and stores configuration data for this authentication plugin.
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.
Reimplemented from auth_plugin_base.
| user_login | ( | $ | username, |
| $ | password | ||
| ) |
Returns true if the username and password work and false if they are wrong or don't exist.
| string | $username | The username (with system magic quotes) |
| string | $password | The password (with system magic quotes) |
Reimplemented from auth_plugin_base.
| user_login_webservice | ( | $ | username, |
| $ | password | ||
| ) |
| user_update_password | ( | $ | user, |
| $ | newpassword | ||
| ) |
Updates the user's password.
called when the user password is updated.
| object | $user | User table object (with system magic quotes) |
| string | $newpassword | Plaintext password (with system magic quotes) |
Reimplemented from auth_plugin_base.
Definition at line 86 of file auth.php.
