jerry 1 rok pred
rodič
commit
8bf71a9651

+ 3 - 2
frontendApi/modules/v1/models/LoginForm.php

@@ -193,8 +193,9 @@ class LoginForm extends Model
 
         try{
             (new IpFilter())->frontApiCheck();
-        } catch(\Exception $e){
-            return $result;
+        } catch(\Exception $exception){
+            $this->clearErrors();
+            $this->setError($exception->getMessage());
         }
 
         return $result;