MDL-31623 Course: Course reset bypass modules, which are removed
[moodle.git] / auth / upgrade.txt
blob4618dd53e9f0e289de0d3b65d6eebfe3144b28bd
1 This files describes API changes in /auth/* - plugins,
2 information provided here is intended especially for developers.
5 === 2.4 ===
7 required changes in code:
8 * use role_get_name() or role_fix_names() if you need any role names, using role.name
9   directly from database is not correct any more
11 optional - no changes needed:
12 * add support for custom user signup form - see auth_plugin_base::signup_form() function
14 === 2.2 ===
16 required changes in code:
17 * the correct sequence to set up global $USER is:
18     $user = get_complete_user_data('username', $username); // or $user = authenticate_user_login()
19     enrol_check_plugins($user);
20     session_set_user($user);