I'm using Regular Lab's sourcerer to embed code in an article to modify users' email addresses once a questionnaire has been completed (anonymization).
I used this code to no avail:
$user = JFactory::getUser();
$user->setParam('email', NULL);
$user->save();
Would you have a clue as how it should be changed?
Thanks a lot for your help!