summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc/locationinfohooks.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2022-09-30 12:17:37 +0200
committerSimon Rettberg2022-09-30 12:17:37 +0200
commitc81db6fb991b1906f9dcb6cab345cd57de202e42 (patch)
treea092c0e5f79bbaf5fe9c76a768c89bc3d36ce124 /modules-available/locationinfo/inc/locationinfohooks.inc.php
parent[statistics] Remove test code (diff)
downloadslx-admin-c81db6fb991b1906f9dcb6cab345cd57de202e42.tar.gz
slx-admin-c81db6fb991b1906f9dcb6cab345cd57de202e42.tar.xz
slx-admin-c81db6fb991b1906f9dcb6cab345cd57de202e42.zip
[locationinfo] Disable shutdown timeout if autologin is enabled
This is probably only accidentally enabled (from location), as an info-panel is always idle and would then probably shutdown frequently. It currently didn't happen because we already clear the logout timeout, and the shutdown timeout only starts running at the login screen. But we want to change that for when we use autologin manually, or in case of an exam.
Diffstat (limited to 'modules-available/locationinfo/inc/locationinfohooks.inc.php')
-rw-r--r--modules-available/locationinfo/inc/locationinfohooks.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules-available/locationinfo/inc/locationinfohooks.inc.php b/modules-available/locationinfo/inc/locationinfohooks.inc.php
index 1627f3cd..5b3e2506 100644
--- a/modules-available/locationinfo/inc/locationinfohooks.inc.php
+++ b/modules-available/locationinfo/inc/locationinfohooks.inc.php
@@ -78,6 +78,9 @@ class LocationInfoHooks
ConfigHolder::add('SLX_AUTOLOGIN', '1', 1000);
ConfigHolder::add('SLX_ADDONS', '', 1000);
}
+ if (ConfigHolder::get('SLX_AUTOLOGIN')) {
+ ConfigHolder::add('SLX_SHUTDOWN_TIMEOUT', '', 1000);
+ }
ConfigHolder::add('SLX_LOGOUT_TIMEOUT', '', 1000);
ConfigHolder::add('SLX_SCREEN_STANDBY_TIMEOUT', '', 1000);
ConfigHolder::add('SLX_SYSTEM_STANDBY_TIMEOUT', '', 1000);