logi fail cou t
This commit is contained in:
@@ -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=[];
|
||||
|
||||
Reference in New Issue
Block a user