[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Authentication Plugin: Manual Authentication Just does a simple check against the moodle database.
Copyright: | 1999 onwards Martin Dougiamas (http://dougiamas.com) |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 255 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file auth/manual/config.html |
auth_plugin_manual:: (14 methods):
__construct()
auth_plugin_manual()
user_login()
user_update_password()
prevent_local_passwords()
is_internal()
can_change_password()
change_password_url()
can_reset_password()
can_be_manually_set()
config_form()
password_expire()
process_config()
user_confirm()
Class: auth_plugin_manual - X-Ref
Manual authentication plugin.__construct() X-Ref |
Constructor. |
auth_plugin_manual() X-Ref |
Old syntax of class constructor. Deprecated in PHP7. |
user_login($username, $password) X-Ref |
Returns true if the username and password work and false if they are wrong or don't exist. (Non-mnet accounts only!) param: string $username The username param: string $password The password return: bool Authentication success or failure. |
user_update_password($user, $newpassword) X-Ref |
Updates the user's password. Called when the user password is updated. param: object $user User table object param: string $newpassword Plaintext password return: boolean result |
prevent_local_passwords() X-Ref |
No description |
is_internal() X-Ref |
Returns true if this authentication plugin is 'internal'. return: bool |
can_change_password() X-Ref |
Returns true if this authentication plugin can change the user's password. return: bool |
change_password_url() X-Ref |
Returns the URL for changing the user's pw, or empty if the default can be used. return: moodle_url |
can_reset_password() X-Ref |
Returns true if plugin allows resetting of internal password. return: bool |
can_be_manually_set() X-Ref |
Returns true if plugin can be manually set. return: bool |
config_form($config, $err, $user_fields) X-Ref |
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. param: array $config An object containing all the data for this page. param: string $error param: array $user_fields return: void |
password_expire($username) X-Ref |
Return number of days to user password expires. If user password does not expire, it should return 0 or a positive value. If user password is already expired, it should return negative value. param: mixed $username username (with system magic quotes) return: integer |
process_config($config) X-Ref |
Processes and stores configuration data for this authentication plugin. param: stdClass $config return: void |
user_confirm($username, $confirmsecret = null) X-Ref |
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. param: string $username param: string $confirmsecret |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |