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:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user