danmarsden / moodle-auth_mcae

replaced by https://github.com/catalyst/moodle-local_cohortauto
https://github.com/catalyst/moodle-local_cohortauto
8 stars 12 forks source link

Trigger cohort sync on user-creation/user profile update #24

Closed danmarsden closed 8 years ago

danmarsden commented 8 years ago

Here's the start of some work I did to allow the sync to be triggered when a user updates their profile or a new user is created. Ideally this would also remove the user_authenticated_hook from being triggered as it will not be needed anymore and move the code from user_authenticated_hook into a generic function instead but I left it for now so that if you don't want to use this method I can maintain the local changes without too much change to the core code. Feel free to close this one if you don't want to change to using this method! - thanks!