2011-10-14 12:48:00 +02:00
|
|
|
This files describes API changes in /auth/* - plugins,
|
|
|
|
information provided here is intended especially for developers.
|
|
|
|
|
2011-10-30 09:28:20 +01:00
|
|
|
|
2012-05-20 14:36:26 +02:00
|
|
|
=== 2.4 ===
|
|
|
|
|
|
|
|
required changes in code:
|
|
|
|
* use role_get_name() or role_fix_names() if you need any role names, using role.name
|
|
|
|
directly from database is not correct any more
|
|
|
|
|
2012-08-01 15:23:05 +01:00
|
|
|
optional - no changes needed:
|
|
|
|
* add support for custom user signup form - see auth_plugin_base::signup_form() function
|
2012-05-20 14:36:26 +02:00
|
|
|
|
2011-10-14 12:48:00 +02:00
|
|
|
=== 2.2 ===
|
|
|
|
|
|
|
|
required changes in code:
|
|
|
|
* the correct sequence to set up global $USER is:
|
|
|
|
$user = get_complete_user_data('username', $username); // or $user = authenticate_user_login()
|
|
|
|
enrol_check_plugins($user);
|
|
|
|
session_set_user($user);
|