2008-01-06 23:24:26 +03:00
|
|
|
<% form_tag({:action => 'edit', :tab => 'authentication'}) do %>
|
|
|
|
|
|
|
|
<div class="box tabular settings">
|
2009-12-19 23:07:09 +03:00
|
|
|
<p><%= setting_check_box :login_required %></p>
|
|
|
|
|
|
|
|
<p><%= setting_select :autologin, [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]}, :blank => :label_disabled %></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_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>
|
2008-01-06 23:24:26 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="float:right;">
|
2010-07-24 04:23:50 +04:00
|
|
|
<%= link_to l(:label_ldap_authentication), {:controller => 'ldap_auth_sources', :action => 'index'}, :class => 'icon icon-server-authentication' %>
|
2008-01-06 23:24:26 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= submit_tag l(:button_save) %>
|
|
|
|
<% end %>
|