pre-fill email field on wrong password

This commit is contained in:
jomo
2015-04-03 20:00:39 +02:00
parent 04c379c3c4
commit ed7dd52db9
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -33,7 +33,7 @@
<% if current_user %>
<span id="userinfo-box">
<%= link_to current_user.name, current_user %><br/>
<%= link_to "Logout", logout_path %>
<%= link_to "Logout", logout_path, method: :delete %>
</span>
<%= link_to current_user.avatar(32), current_user %>
<% else %>
+2 -2
View File
@@ -6,11 +6,11 @@
<table>
<tr>
<td><%= label_tag :email %></td>
<td><%= text_field_tag :email, nil, placeholder: "email@example.com" %></td>
<td><%= text_field_tag :email, params[:email], placeholder: "email@example.com", required: true %></td>
</tr>
<tr>
<td><%= label_tag :password %></td>
<td><%= password_field_tag :password, nil, placeholder: "******" %></td>
<td><%= password_field_tag :password, nil, placeholder: "secret", required: true %></td>
</tr>
<tr>
<td></td>