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

#   Hikashop Register Username digits

##

- **[clairewang](/forum/user/34704-clairewang "View clairewang's Profile")**
- [![clairewang's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34704-clairewang "View clairewang's Profile") Topic Author
- [ Offline](/forum/user/34704-clairewang)

Less More

- Posts: 220
- Thank you received: 0
-
-

10 years 5 months ago [\#242708](#242708) by [clairewang](/forum/user/34704-clairewang "View clairewang's Profile")  *[Hikashop Register Username digits](/forum/33-customers/885017-hikashop-register-username-digits#242708 "-- HikaShop version -- : 2.5 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome 42 -- Error-message(debug-mod must be tuned on) -- : Hikashop Username needs to be two digits.  Dear all,  I found that Hikashop Register Username can't be put in only one letter or one Chinese character, but I use it as the first name. Some people has only one Chinese character for the first name. That causes the registration can't be done. Is there any way to change the rule/regulation? Thanks a lot.")* was created by *[clairewang](/forum/user/34704-clairewang "View clairewang's Profile")*

-- HikaShop version -- : 2.5
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Chrome 42
-- Error-message(debug-mod must be tuned on) -- : Hikashop Username needs to be two digits.

Dear all,

I found that Hikashop Register Username can't be put in only one letter or one Chinese character, but I use it as the first name. Some people has only one Chinese character for the first name. That causes the registration can't be done. Is there any way to change the rule/regulation? Thanks a lot.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84ODUwMTctaGlrYXNob3AtcmVnaXN0ZXItdXNlcm5hbWUtZGlnaXRzP3RtcGw9bWFya2Rvd24=) 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: 86584
- Thank you received: 14325
-
-

10 years 5 months ago [\#242718](#242718) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop Register Username digits](/forum/33-customers/885017-hikashop-register-username-digits#242718 "-- HikaShop version -- : 2.5 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome 42 -- Error-message(debug-mod must be tuned on) -- : Hikashop Username needs to be two digits.  Dear all,  I found that Hikashop Register Username can't be put in only one letter or one Chinese character, but I use it as the first name. Some people has only one Chinese character for the first name. That causes the registration can't be done. Is there any way to change the rule/regulation? Thanks a lot.")*

Hi,

There is no such rule in HikaShop. This comes from Joomla.
You would have to change the line: Code:

if (preg_match('#[&lt;&gt;"\'%;()&amp;\\\\]&#124;\\.\\./#', $this-&gt;username) &#124;&#124; strlen(utf8_decode($this-&gt;username)) &lt; 2 &#124;&#124; $filterInput-&gt;clean($this-&gt;username, 'TRIM') !== $this-&gt;username)

in the file libraries/joomla/table/user.php

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

- **[clairewang](/forum/user/34704-clairewang "View clairewang's Profile")**
- [![clairewang's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34704-clairewang "View clairewang's Profile") Topic Author
- [ Offline](/forum/user/34704-clairewang)

Less More

- Posts: 220
- Thank you received: 0
-
-

10 years 5 months ago [\#243406](#243406) by [clairewang](/forum/user/34704-clairewang "View clairewang's Profile")  Replied by *[clairewang](/forum/user/34704-clairewang "View clairewang's Profile")* on topic *[Hikashop Register Username digits](/forum/33-customers/885017-hikashop-register-username-digits#243406 "-- HikaShop version -- : 2.5 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome 42 -- Error-message(debug-mod must be tuned on) -- : Hikashop Username needs to be two digits.  Dear all,  I found that Hikashop Register Username can't be put in only one letter or one Chinese character, but I use it as the first name. Some people has only one Chinese character for the first name. That causes the registration can't be done. Is there any way to change the rule/regulation? Thanks a lot.")*

Thank you a lot, I thought I have asked you again, but it seems didn't work. I then ask again. I found that the same username would be blocked too. How can I edit this code to be good for one character and same username? Appreciate your answer.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84ODUwMTctaGlrYXNob3AtcmVnaXN0ZXItdXNlcm5hbWUtZGlnaXRzP3RtcGw9bWFya2Rvd24=) 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: 86584
- Thank you received: 14325
-
-

10 years 5 months ago [\#243418](#243418) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop Register Username digits](/forum/33-customers/885017-hikashop-register-username-digits#243418 "-- HikaShop version -- : 2.5 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome 42 -- Error-message(debug-mod must be tuned on) -- : Hikashop Username needs to be two digits.  Dear all,  I found that Hikashop Register Username can't be put in only one letter or one Chinese character, but I use it as the first name. Some people has only one Chinese character for the first name. That causes the registration can't be done. Is there any way to change the rule/regulation? Thanks a lot.")*

What do you mean by "same username" ?
The username has to be unique. Each user account is identified by its username in Joomla. It has to be unique and that can't be otherwise.
It's not something that is controlled by HikaShop, but even in Joomla, there is no easy way to change that uniqueness if that's what you're talking about.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84ODUwMTctaGlrYXNob3AtcmVnaXN0ZXItdXNlcm5hbWUtZGlnaXRzP3RtcGw9bWFya2Rvd24=) 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.057 seconds

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