diff options
author | Simon Rettberg | 2022-09-30 12:17:37 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-09-30 12:17:37 +0200 |
commit | c81db6fb991b1906f9dcb6cab345cd57de202e42 (patch) | |
tree | a092c0e5f79bbaf5fe9c76a768c89bc3d36ce124 /modules-available/locationinfo/inc/locationinfohooks.inc.php | |
parent | [statistics] Remove test code (diff) | |
download | slx-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.php | 3 |
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); |