Merge branch 'wip-mdl-41843-m25' of git://github.com/rajeshtaneja/moodle into MOODLE_...
[moodle.git] / auth / upgrade.txt
blob508453fc065a317d03fb72c18128c197f0049c8c
1 This files describes API changes in /auth/* - plugins,
2 information provided here is intended especially for developers.
4 === 2.5.2 ===
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.
10 === 2.4 ===
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
19 === 2.2 ===
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);