Drupal8/9 Sync email own user from Civi
Hello all,
Modifying your own email from civi does not modify it in drupal, but you can modify any email of any contact and its sync fine. It works fine in D7.
Is this a good approach? Or am I missing something? I have also tested the permissions of the userprotect module.
I discussed this problem some time ago in the CiviCRM chat for Drupal 8: https://chat.civicrm.org/civicrm/pl/i6fyu7a3jpb1mfgffqcmyrxhmr
I found this validation when contact is updated and Symfony throws the error:
Your current password is missing or incorrect; it's required to change the %name.
Source: https://github.com/civicrm/civicrm-core/blob/5.45.1/CRM/Utils/System/Drupal8.php#L117
Tested in CiviCRM 5.45
Reproduction steps
- Edit your own email in the CiviCRM.
- Editing another contact's email in CiviCRM.
Edited by César