Skip to content

Commit

Permalink
3.1.1
Browse files Browse the repository at this point in the history
Fix #4006
  • Loading branch information
nilsteampassnet committed Jan 13, 2024
1 parent 8c2ad88 commit c60f533
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions includes/config/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
*/

define('TP_VERSION', '3.1.1');
define("UPGRADE_MIN_DATE", "1702452416");
define('TP_VERSION_MINOR', '38');
define("UPGRADE_MIN_DATE", "1705123921");
define('TP_VERSION_MINOR', '39');
define('TP_TOOL_NAME', 'Teampass');
define('TP_ONE_DAY_SECONDS', 86400);
define('TP_ONE_WEEK_SECONDS', 604800);
Expand Down
2 changes: 1 addition & 1 deletion install/install.queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ function encryptFollowingDefuse($message, $ascii_key)
$mysqli_result = mysqli_query(
$dbTmp,
"CREATE TABLE IF NOT EXISTS `" . $var['tbl_prefix'] . "items_otp` (
`increment_id` int(12) NOT NULL,
`increment_id` int(12) NOT NULL AUTO_INCREMENT,
`item_id` int(12) NOT NULL,
`secret` text NOT NULL,
`timestamp` varchar(100) NOT NULL,
Expand Down
8 changes: 7 additions & 1 deletion install/upgrade_run_3.1.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
mysqli_query(
$db_link,
'CREATE TABLE IF NOT EXISTS `' . $pre . 'items_otp` (
`increment_id` int(12) NOT NULL,
`increment_id` int(12) NOT NULL AUTO_INCREMENT,
`item_id` int(12) NOT NULL,
`secret` text NOT NULL,
`timestamp` varchar(100) NOT NULL,
Expand All @@ -122,6 +122,12 @@
) CHARSET=utf8;'
);

// Alter table items_otp (see #4006)
mysqli_query(
$db_link,
'ALTER TABLE `' . $pre . 'items_otp` CHANGE `increment_id` `increment_id` INT(12) NOT NULL AUTO_INCREMENT;'
);

// Alter table TOKENS
mysqli_query(
$db_link,
Expand Down
2 changes: 1 addition & 1 deletion sources/items.queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -3825,7 +3825,7 @@
'httponly' => true,
'samesite' => 'Lax' // None || Lax || Strict
);
// deepcode ignore WebCookieSecureDisabledByDefault: <please specify a reason of ignoring this>
// deepcode ignore WebCookieSecureDisabledByDefault: defined in $arr_cookie_options, deepcode ignore WebCookieHttpOnlyDisabledByDefault: defined in $arr_cookie_options
setcookie('jstree_select', $inputData['id'], $arr_cookie_options);

// CHeck if roles have 'allow_pw_change' set to true
Expand Down

0 comments on commit c60f533

Please sign in to comment.