Skip to content

Commit 77afd7a

Browse files
Fix anti bruteforce database update process.
1 parent 768faba commit 77afd7a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

includes/config/include.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828

2929
define('TP_VERSION', '3.1.2');
30-
define("UPGRADE_MIN_DATE", "1731422875");
30+
define("UPGRADE_MIN_DATE", "1732264740");
3131
define('TP_VERSION_MINOR', '166');
3232
define('TP_TOOL_NAME', 'Teampass');
3333
define('TP_ONE_DAY_SECONDS', 86400);

install/upgrade_run_3.1.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@
607607
// Remove unused no_bad_attempts field
608608
try {
609609
$alter_table_query = "
610-
ALTER TABLE `" . $var['tbl_prefix'] . "users`
610+
ALTER TABLE `" . $pre . "users`
611611
DROP COLUMN `no_bad_attempts`";
612612
mysqli_begin_transaction($db_link);
613613
mysqli_query($db_link, $alter_table_query);
@@ -620,7 +620,7 @@
620620
// Table used to store authentication failures
621621
mysqli_query(
622622
$db_link,
623-
"CREATE TABLE IF NOT EXISTS `" . $var['tbl_prefix'] . "auth_failures` (
623+
"CREATE TABLE IF NOT EXISTS `" . $pre . "auth_failures` (
624624
`id` int(12) NOT NULL AUTO_INCREMENT,
625625
`source` ENUM('login', 'remote_ip') NOT NULL,
626626
`value` VARCHAR(500) NOT NULL,

0 commit comments

Comments
 (0)