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

#   Faulty Registration and Login During Checkout

##

- **[Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")**
- [![Ed&#95;Hika's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile") Topic Author
- [ Offline](/forum/user/33922-ed-hika)

Less More

- Posts: 109
- Thank you received: 5
-
-

12 years 1 day ago [\#181436](#181436) by [Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")  *[Faulty Registration and Login During Checkout](/forum/27-checkout/873295-faulty-registration-and-login-during-checkout#181436 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Hikashop wrongly validates the registration and also allows the user to register without having a password during the checkout process.  This problem occurs for the bootstrap setting and the &quot;switcher&quot; registration method.  Please see attached and let me know how to fix this error in the code.  Thanks.  Take care!")* was created by *[Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6

Hello, there.

Good evening!

Hikashop wrongly validates the registration and also allows the user to register without having a password during the checkout process.

This problem occurs for the bootstrap setting and the "switcher" registration method.

Please see attached and let me know how to fix this error in the code.

Thanks.

Take care!

- [ ![FaultyRegistrationandLoginDuringCheckout-1.jpg](/forum/attachment/20940) ](/forum/attachment/20940 "...Checkout-1.jpg") [ ](/forum/attachment/20940?download=1 "...Checkout-1.jpg")
- [ ![FaultyRegistrationandLoginDuringCheckout-2.jpg](/forum/attachment/20941) ](/forum/attachment/20941 "...Checkout-2.jpg") [ ](/forum/attachment/20941?download=1 "...Checkout-2.jpg")
- [ ![FaultyRegistrationandLoginDuringCheckout-3.jpg](/forum/attachment/20942) ](/forum/attachment/20942 "...Checkout-3.jpg") [ ](/forum/attachment/20942?download=1 "...Checkout-3.jpg")
- [ ![FaultyRegistrationandLoginDuringCheckout-4.jpg](/forum/attachment/20943) ](/forum/attachment/20943 "...Checkout-4.jpg") [ ](/forum/attachment/20943?download=1 "...Checkout-4.jpg")
- [ ![FaultyRegistrationandLoginDuringCheckout-5.jpg](/forum/attachment/20944) ](/forum/attachment/20944 "...Checkout-5.jpg") [ ](/forum/attachment/20944?download=1 "...Checkout-5.jpg")
- [ ![FaultyRegistrationandLoginDuringCheckout-6.jpg](/forum/attachment/20945) ](/forum/attachment/20945 "...Checkout-6.jpg") [ ](/forum/attachment/20945?download=1 "...Checkout-6.jpg")
- [ ![FaultyRegistrationandLoginDuringCheckout-7.jpg](/forum/attachment/20946) ](/forum/attachment/20946 "...Checkout-7.jpg") [ ](/forum/attachment/20946?download=1 "...Checkout-7.jpg")
- [ ![FaultyRegistrationandLoginDuringCheckout-8.jpg](/forum/attachment/20947) ](/forum/attachment/20947 "...Checkout-8.jpg") [ ](/forum/attachment/20947?download=1 "...Checkout-8.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MzI5NS1mYXVsdHktcmVnaXN0cmF0aW9uLWFuZC1sb2dpbi1kdXJpbmctY2hlY2tvdXQ/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
-
-

12 years 1 hour ago [\#181671](#181671) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Faulty Registration and Login During Checkout](/forum/27-checkout/873295-faulty-registration-and-login-during-checkout#181671 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Hikashop wrongly validates the registration and also allows the user to register without having a password during the checkout process.  This problem occurs for the bootstrap setting and the &quot;switcher&quot; registration method.  Please see attached and let me know how to fix this error in the code.  Thanks.  Take care!")*

Hi,

Add the code: Code:

if(empty($this-&gt;registerData-&gt;password) &amp;&amp; ($simplified == 0 &#124;&#124; $simplified ==3)){ $app-&gt;enqueueMessage( JText::_('JGLOBAL_AUTH_EMPTY_PASS_NOT_ALLOWED') ); return false; }

before the code: Code:

JRequest::setVar('main_user_data',$data);

in the file administrator/components/com_hikashop/classes/user.php and that should refuse registration without a password entered no matter which button is clicked.

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

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