pre-fill email field on wrong password
This commit is contained in:
@@ -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 %>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -46,7 +46,7 @@ Redstoner::Application.routes.draw do
|
||||
post 'login' => 'sessions#create'
|
||||
get 'become' => 'sessions#become'
|
||||
get 'revert' => 'sessions#revert'
|
||||
get 'logout' => 'sessions#destroy'
|
||||
delete 'logout' => 'sessions#destroy'
|
||||
get 'signup' => 'users#new'
|
||||
get '/dmca' => redirect('https://www.youtube.com/watch?v=oHg5SJYRHA0')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user