%= form_tag({:action => 'edit', :tab => 'authentication'}) do %>
<%= setting_check_box :login_required %>
<%= 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]} %>
<%= 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"]] %>
<%= setting_check_box :unsubscribe %>
<%= setting_text_field :password_min_length, :size => 6 %>
<%= 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]} %>
<%= setting_check_box :lost_password %>
<%= setting_text_field :max_additional_emails, :size => 6 %>
<%= setting_check_box :openid, :disabled => !Object.const_defined?(:OpenID) %>