##// END OF EJS Templates
added a setting option to disable "password lost" functionality...
Jean-Philippe Lang -
r228:52c1718ee8d3
parent child
Show More
@@ -12,7 +12,13
12 12 <p><center><input type="submit" name="login" value="<%=l(:button_login)%> &#187;" class="primary" /></center>
13 13 <% end %>
14 14
15 <br><% if Setting.self_registration? %><%= link_to l(:label_register), :action => 'register' %> |<% end %>
16 <%= link_to l(:label_password_lost), :action => 'lost_password' %></p>
15 <br>
16 <% links = []
17 links << link_to(l(:label_register), :action => 'register') if Setting.self_registration?
18 links << link_to(l(:label_password_lost), :action => 'password_lost') if Setting.password_lost?
19 %>
20 <%= links.join(" | ") %>
21 </p>
22
17 23 </div>
18 24 </center> No newline at end of file
@@ -20,6 +20,9
20 20 <p><label><%= l(:setting_self_registration) %></label>
21 21 <%= check_box_tag 'settings[self_registration]', 1, Setting.self_registration? %><%= hidden_field_tag 'settings[self_registration]', 0 %></p>
22 22
23 <p><label><%= l(:label_password_lost) %></label>
24 <%= check_box_tag 'settings[password_lost]', 1, Setting.password_lost? %><%= hidden_field_tag 'settings[password_lost]', 0 %></p>
25
23 26 <p><label><%= l(:setting_attachment_max_size) %></label>
24 27 <%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>
25 28
@@ -29,6 +29,8 login_required:
29 29 default: 0
30 30 self_registration:
31 31 default: 1
32 password_lost:
33 default: 1
32 34 attachment_max_size:
33 35 format: int
34 36 default: 5120
General Comments 0
You need to be logged in to leave comments. Login now