Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 4.6.7
-
Fix Version/s: Unscheduled
-
Component/s: None
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
In Drupal 8, if I'm logged in and I create a Drupal user, the hook_user_insert() hook is fired and as part of this, CFMatch::synchronise() is called.
However, on line 106 (https://github.com/civicrm/civicrm-core/blob/master/CRM/Core/BAO/UFMatch.php#L106) this function wipes my session and therefore logs me out.
I can't rationalise what this function is actually trying to do. Can someone provide pointers as to why it's wiping my session? Should this function only ever be called to synchronise the current user?