[-] FO : Try to fix "phone required" bug once again when only signing in
This commit is contained in:
@@ -386,8 +386,13 @@ class AuthControllerCore extends FrontController
|
||||
if (!Tools::getValue('phone'))
|
||||
$error_phone = true;
|
||||
}
|
||||
elseif ((Configuration::get('PS_REGISTRATION_PROCESS_TYPE') || Configuration::get('PS_ORDER_PROCESS_TYPE')) && (!Tools::getValue('phone') && !Tools::getValue('phone_mobile')))
|
||||
elseif (((Configuration::get('PS_REGISTRATION_PROCESS_TYPE') || Configuration::get('PS_ORDER_PROCESS_TYPE'))
|
||||
&& (Configuration::get('PS_ORDER_PROCESS_TYPE') && !Tools::getValue('email_create')))
|
||||
&& (!Tools::getValue('phone') && !Tools::getValue('phone_mobile')))
|
||||
$error_phone = true;
|
||||
elseif (((Configuration::get('PS_REGISTRATION_PROCESS_TYPE') && Configuration::get('PS_ORDER_PROCESS_TYPE') && Tools::getValue('email_create')))
|
||||
&& (!Tools::getValue('phone') && !Tools::getValue('phone_mobile')))
|
||||
$error_phone = true;
|
||||
}
|
||||
|
||||
if ($error_phone)
|
||||
|
||||
Reference in New Issue
Block a user