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:
parent
e654dba5e3
commit
62ad12b8be
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user