##// 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 <p><center><input type="submit" name="login" value="<%=l(:button_login)%> &#187;" class="primary" /></center>
12 <p><center><input type="submit" name="login" value="<%=l(:button_login)%> &#187;" class="primary" /></center>
13 <% end %>
13 <% end %>
14
14
15 <br><% if Setting.self_registration? %><%= link_to l(:label_register), :action => 'register' %> |<% end %>
15 <br>
16 <%= link_to l(:label_password_lost), :action => 'lost_password' %></p>
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 </div>
23 </div>
18 </center> No newline at end of file
24 </center>
@@ -20,6 +20,9
20 <p><label><%= l(:setting_self_registration) %></label>
20 <p><label><%= l(:setting_self_registration) %></label>
21 <%= check_box_tag 'settings[self_registration]', 1, Setting.self_registration? %><%= hidden_field_tag 'settings[self_registration]', 0 %></p>
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 <p><label><%= l(:setting_attachment_max_size) %></label>
26 <p><label><%= l(:setting_attachment_max_size) %></label>
24 <%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>
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 default: 0
29 default: 0
30 self_registration:
30 self_registration:
31 default: 1
31 default: 1
32 password_lost:
33 default: 1
32 attachment_max_size:
34 attachment_max_size:
33 format: int
35 format: int
34 default: 5120
36 default: 5120
General Comments 0
You need to be logged in to leave comments. Login now