@@ -216,7 +216,8 @@ class BxAntispamModule extends BxDolModule
public function serviceCheckFormForToxicity(&$oForm) {
$this->_bLastSubmittedFormWasToxic = false;
- if (!$oForm->isValid() || !$oForm->isSubmitted()) return false;
+ if (!$oForm->isSubmitted() || !$oForm->isValid())
+ return false;
$sSubmitName = false;
$sFormText = '';
@@ -201,6 +201,7 @@ class BxBaseServiceLogin extends BxDol
}
if ($bApi) {
+ $oForm->initChecker();
if ($oForm->isSubmittedAndValid()) {
$oAccount = BxDolAccount::getInstance(trim($oForm->getCleanValue('ID')));
bx_login($oAccount->id(), $oForm->getRememberMe());