Locked in Moodle, Cannot update profile.

8 years 6 months ago 8 years 6 months ago by Antonio Durán.
Antonio Durán
Posts: 6945
More
Locked in Moodle, Cannot update profile. #11
Yes, I think so.

I remember that Jomsocial calls the "User created" event before filling his user info in Jomsocial tables.
So, when Joomdle calls Moodle to create the user, Jomsocial profile info is not yet available.

Thus, first time the user logs in after registration, his details won't be available in Moodle, until he saves Jomsocial profile again.

I guess you could fix this behaviour forcing the profile sync on user login, so when the user logs in after registration, his moodle profile is synced from Jomsocial.

To try this, add:
JoomdleHelperContent::call_method ("create_joomdle_user", $user);

in function onLoginUser, in /plugins/user/joomdlehooks.php
after:
if ($mainframe->isAdmin())
return;

If you try, please tell us how it goes.
Cron Job Starts