1 This files describes API changes in /auth/* - plugins,
2 information provided here is intended especially for developers.
6 * can_be_manually_set() - This function was introduced in the base class and returns false by default. If overriden by
7 an authentication plugin to return true, the authentication plugin will be able to be manually set for users. For example,
8 when bulk uploading users you will be able to select it as the authentication method they use.
12 required changes in code:
13 * use role_get_name() or role_fix_names() if you need any role names, using role.name
14 directly from database is not correct any more
16 optional - no changes needed:
17 * add support for custom user signup form - see auth_plugin_base::signup_form() function
21 required changes in code:
22 * the correct sequence to set up global $USER is:
23 $user = get_complete_user_data('username', $username); // or $user = authenticate_user_login()
24 enrol_check_plugins($user);
25 session_set_user($user);