Explorar el Código

Merge branch 'feature/ip_check_new_limit' into feature/NC-45

jerry hace 1 año
padre
commit
d96b1358d8
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      frontendApi/modules/v1/models/LoginForm.php

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

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