about summary refs log tree commit diff stats
path: root/app/views/devise/passwords
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 15:00:52 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 15:00:52 -0400
commit7971d7ac77c83717afcceaa1f476d1eb9afd5918 (patch)
tree5253143e7725b3f870d2f7070cf7b767c80ae1e7 /app/views/devise/passwords
parent1c606f4a6e99576614f5ce3c698f56e96d03e6a3 (diff)
downloadthoughts-7971d7ac77c83717afcceaa1f476d1eb9afd5918.tar.gz
thoughts-7971d7ac77c83717afcceaa1f476d1eb9afd5918.tar.bz2
thoughts-7971d7ac77c83717afcceaa1f476d1eb9afd5918.zip
Styled password reset form
Diffstat (limited to 'app/views/devise/passwords')
-rw-r--r--app/views/devise/passwords/edit.html.erb25
-rw-r--r--app/views/devise/passwords/new.html.erb16
2 files changed, 0 insertions, 41 deletions
diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb deleted file mode 100644 index 6a796b0..0000000 --- a/app/views/devise/passwords/edit.html.erb +++ /dev/null
@@ -1,25 +0,0 @@
1<h2>Change your password</h2>
2
3<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
4 <%= devise_error_messages! %>
5 <%= f.hidden_field :reset_password_token %>
6
7 <div class="field">
8 <%= f.label :password, "New password" %><br />
9 <% if @minimum_password_length %>
10 <em>(<%= @minimum_password_length %> characters minimum)</em><br />
11 <% end %>
12 <%= f.password_field :password, autofocus: true, autocomplete: "off" %>
13 </div>
14
15 <div class="field">
16 <%= f.label :password_confirmation, "Confirm new password" %><br />
17 <%= f.password_field :password_confirmation, autocomplete: "off" %>
18 </div>
19
20 <div class="actions">
21 <%= f.submit "Change my password" %>
22 </div>
23<% end %>
24
25<%= render "devise/shared/links" %>
diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb deleted file mode 100644 index 3d6d11a..0000000 --- a/app/views/devise/passwords/new.html.erb +++ /dev/null
@@ -1,16 +0,0 @@
1<h2>Forgot your password?</h2>
2
3<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
4 <%= devise_error_messages! %>
5
6 <div class="field">
7 <%= f.label :email %><br />
8 <%= f.email_field :email, autofocus: true %>
9 </div>
10
11 <div class="actions">
12 <%= f.submit "Send me reset password instructions" %>
13 </div>
14<% end %>
15
16<%= render "devise/shared/links" %>