summaryrefslogtreecommitdiff
path: root/data/templates/login/autologout.j2
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-09-28 19:42:50 +0200
committerGitHub <noreply@github.com>2022-09-28 19:42:50 +0200
commit0af970a6d98485812fab887d91d4317fa5c0e417 (patch)
treef7583433fa6276e914cf8ae26b4d84d0f6cc8991 /data/templates/login/autologout.j2
parentd5e84fab2e66fb4452516e3a5adc00c6ed772de1 (diff)
parentee2dc735e02930ac46c6ccc96dc5486ab96179e5 (diff)
downloadvyos-1x-0af970a6d98485812fab887d91d4317fa5c0e417.tar.gz
vyos-1x-0af970a6d98485812fab887d91d4317fa5c0e417.zip
Merge pull request #1561 from sever-sever/T4715
login: T4715: Auto logout user after inactivity
Diffstat (limited to 'data/templates/login/autologout.j2')
-rw-r--r--data/templates/login/autologout.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/login/autologout.j2 b/data/templates/login/autologout.j2
new file mode 100644
index 000000000..dc94eecc3
--- /dev/null
+++ b/data/templates/login/autologout.j2
@@ -0,0 +1,5 @@
+{% if timeout is vyos_defined %}
+TMOUT={{ timeout }}
+readonly TMOUT
+export TMOUT
+{% endif %}