logi fail cou t

This commit is contained in:
CHIEFSOFT\ameye
2024-07-07 19:19:15 -04:00
parent b8f237dfe5
commit ae46e84a0a
+1 -1
View File
@@ -27,7 +27,7 @@ class WrenchAuth extends BaseController
$fail_endpoint = "LOGIN_FAILED-".$outF["username"]."-";
//===================REDIS DATA IN CASE OF FAIL
$out_redis = $this->getCache($fail_endpoint); // try find in cache
if ( isset($out_redis) && isset($out_redis["fail_count"]) && $out_redis["fail_count"] > 2 ){
if (isset($out_redis["fail_count"]) && $out_redis["fail_count"] > 2){
// we need stop here
}
$out=[];