Email as username issues

  • Hilmar Schneider
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 5 months ago #150691 by Hilmar Schneider
Email as username issues was created by Hilmar Schneider
In the MP configuration I can set "Use Email as Username" = YES and MP will set the Joomla login name and email to the user email. The problem is users do change their emails from time to time.
In Custom Fields I set the email field to Show on Profile = NO and in Joomla Users configuration I set Change Username = YES. Now the user can change their email/username.
Two issues: 
1. The user can change their username to something that isn't a valid email.
2. The Joomla user email is never updated.

Is there a way to make sure the username is a valid email and can the Joomla user email be updated to match the Joomla username? I thought I could find a Joomla extension that provided this feature but I haven't found one.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #150695 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email as username issues
Hello

Unfortunately, we do not have a way to handle this case yet. If users change their username from Joomla to be something else (not a valid email), we do not have a way to control it (yet). I will see if I can do something to prevent that in future releases, for now, it is not available

Tuan

Please Log in or Create an account to join the conversation.

  • Hilmar Schneider
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 5 months ago #150808 by Hilmar Schneider
Replied by Hilmar Schneider on topic Email as username issues
I did find a partial solution in another thread.
In Joomla Global Configuration >> Users >> Change Username = NO
In MP Custom Fields >> Email >> Show on Profile = YES, Can Edit On Profile = YES

Then when a user changes their email the username is updated. I moved the email to the top of the list which moved it below the username and password fields.

When the user presses UPDATE then the username is updated too.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #150813 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email as username issues
Ah, Yes. I forgot Joomla has a setting to prevent changing username. Thanks for sharing the solution back to us

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #154147 by Roger Clarke
Replied by Roger Clarke on topic Email as username issues
I have just come up against this exact same issue - thank you Hilmar for providing the solution!

I didn't understand the solution for a moment, but the key to it is that changing Joomla Global Configuration >> Users >> Change Username = NO makes the username field on the user profile edit page read only. If it is left as editable then the new email address does not overwrite the old email address in the username field.

I would never have worked this out for myself, so thank you.

Tuan - it would be a much better user experience in this scenario if the username was not displayed and the email address could be displayed just before the password instead. I know I can hide the username with css, but I can't move the email address before the password. I realise that would be tricky for you.

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #154148 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email as username issues
Hello Roger

Just want to be clear, the user profile page we are talking about here is the User Profile page from Membership Pro extension, correct? If so, Yes, I can handle this change in next release of the extension

Tuan

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #154156 by Roger Clarke
Replied by Roger Clarke on topic Email as username issues
Hi Tuan,

Yes, it is the User Profile page from Membership Pro extension.

I've just double checked the sign-up form and that already behaves exactly as I'd like the profile update page to behave - if you set "Use Email as Username" = YES then it replaces the username field with the email field. If that can be done on the user profile page too then that would be perfect.

See screenshots below of that section of my current sign up and user profile screens.
 
 

Thanks,
Roger

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #154166 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email as username issues
OK Roger. I will check and correct this issue in next release of the extension

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #154570 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email as username issues
Hello Roger

Please update your site to latest version 3.2.0 of Membership Pro. It will handle Use Email As Username in User Profile page properly

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Hilmar Schneider
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 10 months ago - 2 years 10 months ago #154589 by Hilmar Schneider
Replied by Hilmar Schneider on topic Email as username issues
My forms look a little different (new member):

And the profile looks like:


I'm using MP 3.1.2 and added some CSS to change the label alignment. In the custom fields I moved the email to the top. (I just noticed that the label alignment for the username and password needs fixing.)
Last edit: 2 years 10 months ago by Hilmar Schneider.

Please Log in or Create an account to join the conversation.