feat: Add configurable auto logout on inactivity

Users can pick an inactivity timeout in their preferences. A warning
appears 30 seconds before, and activity or a logout is synchronised
across open tabs.
This commit is contained in:
Daniel Hiller
2026-08-08 00:24:16 +02:00
parent a9d0c228df
commit 3ef87a8603
22 changed files with 603 additions and 2 deletions
@@ -0,0 +1,14 @@
/*!
* Copyright (c) 2024 PLANKA Software GmbH
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
module.exports.up = (knex) =>
knex.schema.alterTable('user_account', (table) => {
table.string('auto_logout_mode').notNullable().defaultTo('30m');
});
module.exports.down = (knex) =>
knex.schema.alterTable('user_account', (table) => {
table.dropColumn('auto_logout_mode');
});