[Skip to main content](#vessel-content)

#   simplified registration: uses first part of email?

##

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

10 years 8 months ago [\#232620](#232620) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  *[simplified registration: uses first part of email?](/forum/25-install-update/882921-simplified-registration-uses-first-part-of-email#232620 "-- HikaShop version -- : latest -- Joomla version -- : latest  Hello,  I was wondering if the &quot;simplified registration&quot; method uses the first part of the user email (before @) to generate the username, or instead the full email.  I have the free edition so I can't check this out, and it's very important for me because if the username generated is the full email, than all the users emails will be visible on my forum :ohmy:  Thank you")* was created by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")*

-- HikaShop version -- : latest
-- Joomla version -- : latest

Hello,

I was wondering if the "simplified registration" method uses the first part of the user email (before @)
to generate the username, or instead the full email.

I have the free edition so I can't check this out, and it's very important for me
because if the username generated is the full email, than all the users emails will be visible on my forum :ohmy:

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg4MjkyMS1zaW1wbGlmaWVkLXJlZ2lzdHJhdGlvbi11c2VzLWZpcnN0LXBhcnQtb2YtZW1haWw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 8 months ago [\#232647](#232647) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[simplified registration: uses first part of email?](/forum/25-install-update/882921-simplified-registration-uses-first-part-of-email#232647 "-- HikaShop version -- : latest -- Joomla version -- : latest  Hello,  I was wondering if the &quot;simplified registration&quot; method uses the first part of the user email (before @) to generate the username, or instead the full email.  I have the free edition so I can't check this out, and it's very important for me because if the username generated is the full email, than all the users emails will be visible on my forum :ohmy:  Thank you")*

Hi,

It uses the full email address for the username.
It can however be changed quite easily by changing the line:
$this-&gt;registerData-&gt;username = $this-&gt;registerData-&gt;email;
to:
$this-&gt;registerData-&gt;username = substr($this-&gt;registerData-&gt;email,0,strpos($this-&gt;registerData-&gt;email,'@'));
in the file administrator/components/com_hikashop/classes/user.php

The following user(s) said Thank You: [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg4MjkyMS1zaW1wbGlmaWVkLXJlZ2lzdHJhdGlvbi11c2VzLWZpcnN0LXBhcnQtb2YtZW1haWw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.054 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
