Skip to content

Commit

Permalink
Fix anti bruteforce database update process.
Browse files Browse the repository at this point in the history
  • Loading branch information
corentin-soriano committed Nov 22, 2024
1 parent 768faba commit 77afd7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/config/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/

define('TP_VERSION', '3.1.2');
define("UPGRADE_MIN_DATE", "1731422875");
define("UPGRADE_MIN_DATE", "1732264740");
define('TP_VERSION_MINOR', '166');
define('TP_TOOL_NAME', 'Teampass');
define('TP_ONE_DAY_SECONDS', 86400);
Expand Down
4 changes: 2 additions & 2 deletions install/upgrade_run_3.1.php
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@
// Remove unused no_bad_attempts field
try {
$alter_table_query = "
ALTER TABLE `" . $var['tbl_prefix'] . "users`
ALTER TABLE `" . $pre . "users`
DROP COLUMN `no_bad_attempts`";
mysqli_begin_transaction($db_link);
mysqli_query($db_link, $alter_table_query);
Expand All @@ -620,7 +620,7 @@
// Table used to store authentication failures
mysqli_query(
$db_link,
"CREATE TABLE IF NOT EXISTS `" . $var['tbl_prefix'] . "auth_failures` (
"CREATE TABLE IF NOT EXISTS `" . $pre . "auth_failures` (
`id` int(12) NOT NULL AUTO_INCREMENT,
`source` ENUM('login', 'remote_ip') NOT NULL,
`value` VARCHAR(500) NOT NULL,
Expand Down

0 comments on commit 77afd7a

Please sign in to comment.