1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-23 22:03:18 +01: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();
if ($database->isInstalled() || !$database->fetchNum("SHOW TABLES LIKE 'zz_logs'")) {
if (!$database->isInstalled() || !$database->fetchNum("SHOW TABLES LIKE 'zz_logs'")) {
return false;
}
@ -396,7 +396,7 @@ class Auth extends \Util\Singleton
*/
public static function getBruteTimeout()
{
if (self::isBrute()) {
if (!self::isBrute()) {
return 0;
}