From 37805051fb90d22813cd3f5ad3995f92acdd9a72 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 4 Jun 2012 20:13:23 -0700 Subject: [PATCH] add logout timeout, RT#17057 --- FS/FS/Conf.pm | 7 +++++++ httemplate/elements/header.html | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 4e497c1cc..151e31c7d 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -5077,6 +5077,13 @@ and customer address. Include units.', 'type' => 'checkbox', }, + { + 'key' => 'logout-timeout', + 'section' => 'UI', + 'description' => 'If set, automatically log users out of the backoffice after this many minutes.', + 'type' => 'text', + }, + { key => "apacheroot", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachine", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachines", section => "deprecated", description => "DEPRECATED", type => "text" }, diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index d0ab3055d..c6ad3c387 100644 --- a/httemplate/elements/header.html +++ b/httemplate/elements/header.html @@ -42,6 +42,12 @@ Example: <% include('init_overlib.html') |n %> <% include('rs_init_object.html') |n %> <% include('logout.html') |n %> +% my $timeout = $conf->config('logout-timeout'); +% if ( $timeout && $timeout =~ /^\s*\d+\s*$/ ) { + +% } <% $head |n %> -- 2.11.0