Had to modify door log model and add config.yml to avoid storing password in git

This commit is contained in:
2012-09-15 20:41:17 -07:00
parent 93e77b692f
commit 921ba21a40
9 changed files with 43 additions and 12 deletions

View File

@@ -15,6 +15,20 @@
<%= f.label :name %><br />
<%= f.text_field :name %>
</div>
<div class="field">
<%= f.label :email %><br />
<%= f.email_field :email %>
</div>
<% if @user.id.blank? %>
<div class="field">
<%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
<%= f.password_field :password, :autocomplete => "off" %>
</div>
<div class="field">
<%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation %>
</div>
<% end %>
<div class="field">
<%= f.label :card_id, "Card DB ID" %><br />
<%= f.number_field :card_id, :in => 10...201 %>

View File

@@ -22,7 +22,7 @@
<td><%= user.card_permissions %></td>
<td><%= link_to 'Upload', upload_path(user) %></td>
<td><%= link_to 'Edit', edit_user_path(user) %></td>
<td><%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %></td>
<td><%= link_to 'Destroy', user, :confirm => 'Are you sure? WARNING: THIS DOES NOT REMOVE THE USER FROM THE DOOR SYSTEM! DISABLE THEM FIRST.', :method => :delete %></td>
</tr>
<% end %>
<% end %>