1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Bugfix per la protezione brute-force

This commit is contained in:
Thomas Zilio
2017-09-20 15:10:23 +02:00
parent e654dba5e3
commit 62ad12b8be

View File

@ -376,7 +376,7 @@ class Auth extends \Util\Singleton
{ {
$database = Database::getConnection(); $database = Database::getConnection();
if ($database->isInstalled() || !$database->fetchNum("SHOW TABLES LIKE 'zz_logs'")) { if (!$database->isInstalled() || !$database->fetchNum("SHOW TABLES LIKE 'zz_logs'")) {
return false; return false;
} }
@ -396,7 +396,7 @@ class Auth extends \Util\Singleton
*/ */
public static function getBruteTimeout() public static function getBruteTimeout()
{ {
if (self::isBrute()) { if (!self::isBrute()) {
return 0; return 0;
} }