- Posts: 11
- Thank you received: 0
Synconise email address
- Larry Gayowsky
- Offline
- New Member
-
Less
More
6 years 1 month ago #124094
by Larry Gayowsky
Replied by Larry Gayowsky on topic Synconise email address
Hi Tuan,
I look forward to this fix to ensure the MP email address always matches the email address in joomla.
I have another related issue. I'm using MP for all joomla registration. I have mp set to use email as username. I have joomla set to don't allow username edit.
In profile edit, the username field is readonly, which is correct. When the user changes their email, I would expect the joomla username to be changed to the new email address. In other words the username and email should always be the same. Can you fix?
I look forward to this fix to ensure the MP email address always matches the email address in joomla.
I have another related issue. I'm using MP for all joomla registration. I have mp set to use email as username. I have joomla set to don't allow username edit.
In profile edit, the username field is readonly, which is correct. When the user changes their email, I would expect the joomla username to be changed to the new email address. In other words the username and email should always be the same. Can you fix?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 1 month ago #124098
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Synconise email address
Hi Larry
I remember I fixed it recently. When users update the email his username will be updated
Could you please access to My Downloads menu item, download the updated package, update it to your site, then try again?
Tuan
I remember I fixed it recently. When users update the email his username will be updated
Could you please access to My Downloads menu item, download the updated package, update it to your site, then try again?
Tuan
Please Log in or Create an account to join the conversation.
- Larry Gayowsky
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
6 years 1 month ago #124100
by Larry Gayowsky
Replied by Larry Gayowsky on topic Synconise email address
Hi Tuan,
Thanks for the quick reply.
I downloaded and updated but the problem is still there. I have "use_email_as_userid" set. I go into user profile. I change the email address. In joomla profile the email is changed but the username stays the same.
I have fixed it by changing the controller. But I don't want to have to do this.
profile.php in the site model controller
$params = JComponentHelper::getParams('com_users');
// my changes below
$use_email_as_username='1'; //I dont know how to get this parameter within the controller so I force to true for my case
if ($params->get('change_login_name') || $use_email_as_username) //LG
{
if ( $use_email_as_username )
{
$username = $data;
} else {
$username = $data;
}
//end of my changes
$filterInput = JFilterInput::getInstance(); ...
Thanks for the quick reply.
I downloaded and updated but the problem is still there. I have "use_email_as_userid" set. I go into user profile. I change the email address. In joomla profile the email is changed but the username stays the same.
I have fixed it by changing the controller. But I don't want to have to do this.
profile.php in the site model controller
$params = JComponentHelper::getParams('com_users');
// my changes below
$use_email_as_username='1'; //I dont know how to get this parameter within the controller so I force to true for my case
if ($params->get('change_login_name') || $use_email_as_username) //LG
{
if ( $use_email_as_username )
{
$username = $data;
} else {
$username = $data;
}
//end of my changes
$filterInput = JFilterInput::getInstance(); ...
Please Log in or Create an account to join the conversation.
- Larry Gayowsky
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
6 years 1 month ago #124101
by Larry Gayowsky
Replied by Larry Gayowsky on topic Synconise email address
Sorry, maybe this is better
Code:
$params = JComponentHelper::getParams('com_users');
//START OF LG CHANGES
$use_email_as_username='1'; //I dont know how to get this parameter within the controller so I force to true for my case
if ($params->get('change_login_name') || $use_email_as_username)
{
if ( $use_email_as_username )
{
$username = $data['email'];
} else {
$username = $data['username'];
}
//END OF LG CHANGES
$filterInput = JFilterInput::getInstance();
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 1 month ago #124106
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Synconise email address
Controller is not the right place to make the change. The right place must be in model. To make sure you are having correct files installed, please:
1. Get this file, unzip it, upload to folder components/com_osmembership/model on your site
2. Access to user profile page, change the email (make sure that email must be a unique email, different from all existing users' emails)
3. Then check it again
if it still does not work, please submit a support ticket sending us:
- Super admin account of your site
- A subscriber account
- Link to the user profile page
- Tell us the email you are trying to change to
I will check to see what's wrong and get it sorted
Regards,
Tuan
1. Get this file, unzip it, upload to folder components/com_osmembership/model on your site
2. Access to user profile page, change the email (make sure that email must be a unique email, different from all existing users' emails)
3. Then check it again
if it still does not work, please submit a support ticket sending us:
- Super admin account of your site
- A subscriber account
- Link to the user profile page
- Tell us the email you are trying to change to
I will check to see what's wrong and get it sorted
Regards,
Tuan
- Larry Gayowsky
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
6 years 1 month ago #124113
by Larry Gayowsky
Replied by Larry Gayowsky on topic Synconise email address
Hi Tuan,
Yes, you are correct. The change I made was in the model, not the controller. Sorry about that.
I replaced profile.php with the one you sent me. Profile edit is now working as expected. Changing the email also changes the username. Thanks! I assume this new model file will be incorporated into the next release.
All that is missing is the Ajax check to make sure the new email entered is unique.
Thanks again for the awesome support.
Yes, you are correct. The change I made was in the model, not the controller. Sorry about that.
I replaced profile.php with the one you sent me. Profile edit is now working as expected. Changing the email also changes the username. Thanks! I assume this new model file will be incorporated into the next release.
All that is missing is the Ajax check to make sure the new email entered is unique.
Thanks again for the awesome support.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 1 month ago #124114
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Synconise email address
We won't support for ajax check for now. Maybe in the future, we can add some kind of validation (on submit) to make sure the entered email is valid
As of right now, we just ignore saving if the entered email invalid (for example, use by other future)
For now, just use it as how it's. And Yes, it will be included in next release of the extension
Tuan
As of right now, we just ignore saving if the entered email invalid (for example, use by other future)
For now, just use it as how it's. And Yes, it will be included in next release of the extension
Tuan
Please Log in or Create an account to join the conversation.
- Roger Clarke
- Offline
- Premium Member
-
Less
More
- Posts: 88
- Thank you received: 1
6 years 1 month ago #124268
by Roger Clarke
Replied by Roger Clarke on topic Synconise email address
Hi Tuan,
+1 for admin updates to email address updating the Joomla user email address (if I've read this thread correctly that will be included in the next release). Please could you also update the name on the Joomla user record if an admin updates it on the subscription record so that everything is kept in sync.
Thanks,
Roger
+1 for admin updates to email address updating the Joomla user email address (if I've read this thread correctly that will be included in the next release). Please could you also update the name on the Joomla user record if an admin updates it on the subscription record so that everything is kept in sync.
Thanks,
Roger
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 3 weeks ago #124328
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Synconise email address
Hi Roger
Just had it implemented. So if you need it, access to My Downloads menu item, download latest package, upgrade it to your site and it should work as expected
Tuan
Just had it implemented. So if you need it, access to My Downloads menu item, download latest package, upgrade it to your site and it should work as expected
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.