This files describes API changes in /user/*.

=== 19.1.0 ===
* The profile_field_base::__construct() method has been updated to accept two additional parameters: $field and $data.
  If both are provided, the field will be initialized with the provided data instead of fetching it from the database.
  Any user profile field types that extend profile_field_base and implement a constructor must be updated to handle
  these parameters correctly.
* A new 'dataid' property has been added to the profile_field_base class.
  This property is used to store the ID of the data record associated with the field.
  If there is no data record saved yet, this property will be null.
* Changed HTML tags used \core_user\output\myprofile\renderer to improve accessibility

=== 19.0 ===

* private method \core_user\access_controller::get_enrolled_courses()
  Added a check for 'real' course enrolments (course container type) when instantiated in course context.
  This makes it consistent with the restriction when instantiated without course context.
  This potentially changes existing behaviour in cases where the access_controller was used in context of a course object
  for container types other than 'course' that allows enrolments.
* templates/profile_card.mustache was updated to use h1 headings

=== 18.0 ===
* user_helper::create_user() third optional parameter $tenant_id has been removed
* user_helper::update_user() third optional parameter $tenant_id has been removed
* my_copy_page() function has been removed (deprecated since Totara 13)

=== 17.0 ===
* Added new method validate_field_from_inputs() to 'class profile_field_base' to validate user inputs
* Added new method can_edit_locked_field() to 'class profile_field_base' to check if a field is locked

=== 14.0 ===

=== 13.0 ===
* my_copy_page() function has been deprecated
* user_can_loginas() has been deprecated, please use \core_user\access_controller::can_loginas() instead
* \core_user\rb\source\report_trait::add_core_user_tables() supports specifying more complex join conditions

=== 12.0 ===
* useredit_update_bounces() has been deprecated, please use \core_user\email_bounce_counter instead