[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Authentication Plugin: FirstClass Authentication Authentication using a FirstClass server.
Author: | Martin Dougiamas |
License: | http://www.gnu.org/copyleft/gpl.html GNU Public License |
File Size: | 263 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 2 files auth/fc/fcFPP.php auth/fc/config.html |
auth_plugin_fc:: (11 methods):
__construct()
auth_plugin_fc()
user_login()
get_userinfo()
iscreator()
prevent_local_passwords()
is_internal()
can_change_password()
sync_roles()
config_form()
process_config()
Class: auth_plugin_fc - X-Ref
FirstClass authentication plugin.__construct() X-Ref |
Constructor. |
auth_plugin_fc() 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. param: string $username The username param: string $password The password return: bool Authentication success or failure. |
get_userinfo($username) X-Ref |
Get user information from FirstCLass server and return it in an array. Localize this routine to fit your needs. |
iscreator($username) X-Ref |
Get users group membership from the FirstClass server user and check if user is member of one of the groups of creators. |
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 |
sync_roles($user) X-Ref |
Sync roles for this user param: $user object user object (without system magic quotes) |
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 $page An object containing all the data for this page. |
process_config($config) X-Ref |
Processes and stores configuration data for this authentication plugin. |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |