Faulty Registration and Login During Checkout

  • Posts: 109
  • Thank you received: 5
10 years 5 months ago #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 "switcher" registration method.

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

Thanks.

Take care!

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

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
10 years 5 months ago #181671

Hi,

Add the code:

if(empty($this->registerData->password) && ($simplified == 0 || $simplified ==3)){
			$app->enqueueMessage( JText::_('JGLOBAL_AUTH_EMPTY_PASS_NOT_ALLOWED') );
			return false;
		}
before the 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 or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum