- Posts: 109
- Thank you received: 5
Faulty Registration and Login During Checkout
12 years 1 day ago #181436
by Ed_Hika
Faulty Registration and Login During Checkout was created by Ed_Hika
-- 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!
-- 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.
12 years 1 hour ago #181671
by nicolas
Replied by nicolas on topic Faulty Registration and Login During Checkout
Hi,
Add the code:
before the code:
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.
Add the code:
Code:
if(empty($this->registerData->password) && ($simplified == 0 || $simplified ==3)){
$app->enqueueMessage( JText::_('JGLOBAL_AUTH_EMPTY_PASS_NOT_ALLOWED') );
return false;
}
Code:
JRequest::setVar('main_user_data',$data);
Please Log in or Create an account to join the conversation.
Time to create page: 0.053 seconds