2012-04-25 21:17:49 +04:00
|
|
|
<%= form_tag({:action => 'edit', :tab => 'authentication'}) do %>
|
2008-01-06 23:24:26 +03:00
|
|
|
|
|
|
|
<div class="box tabular settings">
|
2009-12-19 23:07:09 +03:00
|
|
|
<p><%= setting_check_box :login_required %></p>
|
|
|
|
|
2010-10-30 02:28:24 +04:00
|
|
|
<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>
|
2009-12-19 23:07:09 +03:00
|
|
|
|
|
|
|
<p><%= setting_select :self_registration, [[l(:label_disabled), "0"],
|
2011-09-18 06:47:15 +04:00
|
|
|
[l(:label_registration_activation_by_email), "1"],
|
|
|
|
[l(:label_registration_manual_activation), "2"],
|
|
|
|
[l(:label_registration_automatic_activation), "3"]] %></p>
|
2009-12-19 23:07:09 +03:00
|
|
|
|
2012-04-15 18:31:54 +04:00
|
|
|
<p><%= setting_check_box :unsubscribe %></p>
|
|
|
|
|
2009-12-19 23:07:09 +03:00
|
|
|
<p><%= setting_text_field :password_min_length, :size => 6 %></p>
|
|
|
|
|
|
|
|
<p><%= setting_check_box :lost_password, :label => :label_password_lost %></p>
|
|
|
|
|
|
|
|
<p><%= setting_check_box :openid, :disabled => !Object.const_defined?(:OpenID) %></p>
|
2009-12-23 20:56:39 +03:00
|
|
|
|
|
|
|
<p><%= setting_check_box :rest_api_enabled %></p>
|
2013-01-26 22:37:09 +04:00
|
|
|
|
|
|
|
<p><%= setting_check_box :jsonp_enabled %></p>
|
2008-01-06 23:24:26 +03:00
|
|
|
</div>
|
|
|
|
|
2012-06-10 17:16:56 +04:00
|
|
|
<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>
|
|
|
|
|
2008-01-06 23:24:26 +03:00
|
|
|
<%= submit_tag l(:button_save) %>
|
|
|
|
<% end %>
|