Issue:

Users can easily become out of sync during updates.

Important

This is an expansion of the listed parent issue. The patch in the parent issue added functionality for editing user passwords on connected sites on registration. This expands on that and allows a user to stay in sync during updates and registration more accurately.

Also changed

Also changed in this case is an important option to allow logging into a site without triggering logging in on all sites. This feature may seem confusing at first, but in some cases, we want accounts to be synced or passwords to be updated, but we don't necessarily want logins on a master site to trigger logins on all connected sites. So extension sites can login to master, but master doesn't have to waste time logging in to extension sites.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ryanissamson created an issue. See original summary.

ryan.gibson’s picture

Status: Active » Needs review
FileSize
7.85 KB

Attaching patch

ryan.gibson’s picture

Attaching an updated patch. The patch from #2 will not work correctly.

Note: This patch is rough and hasn't been streamlined a great deal, but it's been tested and is working.

ryan.gibson’s picture

Updated patch removing check for $account variable before it is set.

ryan.gibson’s picture

Here is an update to the patch that prevents a user from being logged in on target site when user is updated or registered on originating site.

ryan.gibson’s picture

Updated patch with newline after function close.

ryan.gibson’s picture

Title: Registering a user on one site should immediately register a user on another site » User data syncing improvements
Issue summary: View changes
FileSize
19.19 KB

Attaching a patch that builds on this to sync roles as well as the user email address on user update, not just user registration.