added a setting option to disable "password lost" functionality

git-svn-id: http://redmine.rubyforge.org/svn/trunk@231 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2007-02-04 09:37:28 +00:00
1 parent 8b180aa606
commit 52c1718ee8
3 files changed
+13 -2

No files matched your search

+8 -2
View File
@@ -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>