summaryrefslogtreecommitdiffstats
path: root/app/views/settings/_authentication.html.erb
blob: f9c569cb8545ee8b37b9d784d6b22deefa2e1159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<%= form_tag({:action => 'edit', :tab => 'authentication'}) do %>

<div class="box tabular settings">
<p><%= setting_check_box :login_required %></p>

<p><%= setting_select :autologin, [[l(:label_disabled), 0]] + [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]} %></p>

<p><%= setting_select :self_registration, [[l(:label_disabled), "0"],
                                           [l(:label_registration_activation_by_email), "1"],
                                           [l(:label_registration_manual_activation), "2"],
                                           [l(:label_registration_automatic_activation), "3"]] %></p>

<p><%= setting_check_box :unsubscribe %></p>

<p><%= setting_text_field :password_min_length, :size => 6 %></p>

<p>
  <%= setting_select :password_max_age, [[l(:label_disabled), 0]] + [7, 30, 60, 90, 180, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]} %>
</p>

<p><%= setting_check_box :lost_password, :label => :label_password_lost %></p>

<p><%= setting_text_field :max_additional_emails, :size => 6 %></p>

<p><%= setting_check_box :openid, :disabled => !Object.const_defined?(:OpenID) %></p>
</div>

<fieldset class="box">
  <legend><%= l(:label_session_expiration) %></legend>

  <div class="tabular settings">
    <p><%= setting_select :session_lifetime, session_lifetime_options %></p>
    <p><%= setting_select :session_timeout, session_timeout_options %></p>
  </div>
  
  <p><em class="info"><%= l(:text_session_expiration_settings) %></em></p>
</fieldset>

<%= submit_tag l(:button_save) %>
<% end %>