diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-10 13:16:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-10 13:16:56 +0000 |
commit | 74645eb017f2f8a0f9e7ce669c50c3827488b801 (patch) | |
tree | a551422f1783886028107abd2874b4c9cdc35ee9 /app/views/settings/_authentication.html.erb | |
parent | 26ff9e1c260b6cbb02371f72047e3108a93aee75 (diff) | |
download | redmine-74645eb017f2f8a0f9e7ce669c50c3827488b801.tar.gz redmine-74645eb017f2f8a0f9e7ce669c50c3827488b801.zip |
Configurable session lifetime and timeout (#6597).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9797 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/settings/_authentication.html.erb')
-rw-r--r-- | app/views/settings/_authentication.html.erb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/settings/_authentication.html.erb b/app/views/settings/_authentication.html.erb index fe27e3d88..bba896497 100644 --- a/app/views/settings/_authentication.html.erb +++ b/app/views/settings/_authentication.html.erb @@ -21,5 +21,16 @@ <p><%= setting_check_box :rest_api_enabled %></p> </div> +<fieldset class="box"> + <legend><%= l(:label_session_expiration) %></legend> + + <div class="tabular settings"> + <p><%= setting_select :session_lifetime, [[l(:label_disabled), 0]] + [1, 7, 30, 60, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), (days * 60 * 24).to_s]} %></p> + <p><%= setting_select :session_timeout, [[l(:label_disabled), 0]] + [1, 2, 4, 8, 12, 24, 48].collect{|hours| [l('datetime.distance_in_words.x_hours', :count => hours), (hours * 60).to_s]} %></p> + </div> + + <p><em class="info"><%= l(:text_session_expiration_settings) %></em></p> +</fieldset> + <%= submit_tag l(:button_save) %> <% end %> |