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