If the registration form of your site is being handled by Seblod, you can do the following.
1 - On the "User Username" field, go to button 1, make it hidden
2 - Still on the same field, on button 5, at Computation Rules column, click Add. After lightbox is open, on field "Computation", choose the option "Concatenate". On the below field, choose the option "User Email"
This way your every new user that register to your site, will have it's e-mail as username.
I followed your tip with joomla 3.1.5 - Seblod 3.1.5
I have back this Error message when I try to register:
Registration failed: Please enter a user name.
An error has occurred.
I thought was because the "User Username" is a "required" field and during registration being "concatenate" cannot be found yet in the DB, so I changed it to "optional" in the Site Form and also in the Admin Form (button 3), but always the same error message.
Please, What am I missing ? Have you any suggestion ?
The only issue with using the concat field, as others have posted, is that it cuts off after special characters. So @ and . cut off the input. I've been trying to find where this is controlled and can't see to find it. Any thoughts?
Hi to all, I found a simple and easy solution for me: use the "username" field like to input the "email" and the "email" field to check the first field (as is done for the "password" field). After that "username" and "email" are always equal. After that, to have the 100% compatibility with all components etc. I used overrides language to override "Email" where there was "Username"!
Here a How To step by step:
Seblod - Form & Content Type - User:
Site Form - Configuration > Configuration > Message (Thanks): USERS_REGISTRATION_COMPLETE_ACTIVATE
Site Form - Fields: move User Email below User Username
Site Form - Fields > 1 > User Username > edit > Construction Maxlegth: 100 = User Email
Site Form - Fields > 3 > User Username > Required + Validation: Email
Site Form - Fields > 3 > User Email > Required + Validation: Confirm user_username
Languages Overrides: COM_CCK_LOGIN_NAME
Languages Overrides: COM_CCK_EMAIL
Languages Overrides: COM_CCK_USERS_REGISTRATION_COMPLETE_ACTIVATE
Languages Overrides: COM_CCK_EMAIL_REGISTERED_WITH_ACTIVATION_BODY
Languages Overrides: COM_USERS_LOGIN_USERNAME_LABEL
Languages Overrides: COM_USERS_REGISTRATION_ACTIVATE_SUCCESS
Joomla - Language Manager:
Language Manager > Override > JGLOBAL_AUTH_INVALID_PASS
Language Manager > Override > JGLOBAL_AUTH_NO_USER
Hoping that this might help someone else, please let me know if I forgot something ;)
From the early begining of my project, I also thought to use e-mail field as username. JED has a lot of plugins to make it possible, but not Seblod :)
After 1 month of *** I came to conclusion...untill Joomla! will not do this in own Core - we must use username, especially if your website is interactive (users can create content based on pre-defined CT in Seblod).
I'll point out disadvantages of using e-mail instead of username:
username is used for AUTHOR link text, if you use emails - user's e-mail will be visible instead of username/author alias. This means, you have to generate Author Alias field also in Seblod in order to hide e-mails. By default Joomla use username if author alias isn't filled in the metadata
be sure that components you are using, also work with e-mails with @ character.