Proposed update
This is not necessarily an issue but rather a suggested update. Not sure where the proper place to make suggestions is. The current code does not create a UF_Match entry. If before you manually Sync users in Civi: the individual repeats the process (makes a donation or creates a membership), they will get a message from the CMS that the user already exists. Or if they made a donation and they want to see their donor dashboard , they will not have access to the Civi User dashboard. I think it would be helpful to have it create the UF_match entry right after the CMS user is created.
If that is something you want, here is the edit I did to the current Createcmsuser.php file. The first line is unchanged and is just included to help find the location in the file. The second line has a slight edit and the next 5 lines are new. The last bracket is original code.
$userParams['cms_pass'] = CRM_Silentuserreg_Util::randomPassword(); $nid=CRM_Core_BAO_CMSUser::create($userParams, 'email'); // create the UF Match record $ufmatch['uf_id'] = $nid; $ufmatch['contact_id'] = $cid; $ufmatch['uf_name'] = $userInfo['email']; CRM_Core_BAO_UFMatch::create($ufmatch); }