Hey great work on this component! My new favourite!
We need to add a customisation when a user updates their email address.
We are using the mailonchange plugin to sent emails on profile updates which is great.
But when a user updates their email and saves - we want to add a system alert message on the profile page that says:
"Please note you must login with your new email address."
So far I know we need to use something like:
if (in_array("email", $changed)) {
JFactory::getApplication()->enqueueMessage(JText::_('COM_USERS_PROFILE_EMAIL_CHANGED'),'warning');}
but I am not sure how to use:
triggerProfileUpdate($user,&$data,$changed,$isNew){
if(in_array('email',$changed)){
or where to put it.
Is there a way to add it to the mailonchange plugin - or do we need to edit the com_users/controllers/profile.php file.
Thanks for your help!!!
J