Commit 52c1718e authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

added a setting option to disable "password lost" functionality

git-svn-id: http://redmine.rubyforge.org/svn/trunk@231 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 8b180aa6
......@@ -12,7 +12,13 @@
<p><center><input type="submit" name="login" value="<%=l(:button_login)%> &#187;" class="primary" /></center>
<% end %>
<br><% if Setting.self_registration? %><%= link_to l(:label_register), :action => 'register' %> |<% end %>
<%= link_to l(:label_password_lost), :action => 'lost_password' %></p>
<br>
<% links = []
links << link_to(l(:label_register), :action => 'register') if Setting.self_registration?
links << link_to(l(:label_password_lost), :action => 'password_lost') if Setting.password_lost?
%>
<%= links.join(" | ") %>
</p>
</div>
</center>
\ No newline at end of file
......@@ -20,6 +20,9 @@
<p><label><%= l(:setting_self_registration) %></label>
<%= check_box_tag 'settings[self_registration]', 1, Setting.self_registration? %><%= hidden_field_tag 'settings[self_registration]', 0 %></p>
<p><label><%= l(:label_password_lost) %></label>
<%= check_box_tag 'settings[password_lost]', 1, Setting.password_lost? %><%= hidden_field_tag 'settings[password_lost]', 0 %></p>
<p><label><%= l(:setting_attachment_max_size) %></label>
<%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>
......
......@@ -29,6 +29,8 @@ login_required:
default: 0
self_registration:
default: 1
password_lost:
default: 1
attachment_max_size:
format: int
default: 5120
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment