RomanL 6 лет назад
Родитель
Сommit
2688d45f1c
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      template/scripts/BxBaseFormLogin.php

+ 5 - 2
template/scripts/BxBaseFormLogin.php

@@ -79,10 +79,13 @@ class BxBaseFormLogin extends BxTemplFormView
     {
         if (!parent::isValid())
             return false;
-
+        
+        if (!isset($this->aInputs['ID']))
+            return true;
+        
         $sId = trim($this->getCleanValue('ID'));
         $sPassword = trim($this->getCleanValue('Password'));
-
+        
         if ($sId != ''){
             $sErrorString = bx_check_password($sId, $sPassword, $this->getRole());
             $this->_setCustomError ($sErrorString);