diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-06-25 12:30:31 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-06-25 12:30:31 -0400 |
commit | 7e2e42379cb40a500eb8a236c05788eb3e84d141 (patch) | |
tree | 784dfe04f81b034889b96b5c251923da7e6f3a1e /app/views/devise/passwords | |
parent | 275218aeaf24d4f9d58589cf68ec6647f0a65050 (diff) | |
download | thoughts-7e2e42379cb40a500eb8a236c05788eb3e84d141.tar.gz thoughts-7e2e42379cb40a500eb8a236c05788eb3e84d141.tar.bz2 thoughts-7e2e42379cb40a500eb8a236c05788eb3e84d141.zip |
Added logging in and logging out
Diffstat (limited to 'app/views/devise/passwords')
-rw-r--r-- | app/views/devise/passwords/edit.html.erb | 25 | ||||
-rw-r--r-- | app/views/devise/passwords/new.html.erb | 16 |
2 files changed, 41 insertions, 0 deletions
diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb new file mode 100644 index 0000000..6a796b0 --- /dev/null +++ b/app/views/devise/passwords/edit.html.erb | |||
@@ -0,0 +1,25 @@ | |||
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 new file mode 100644 index 0000000..3d6d11a --- /dev/null +++ b/app/views/devise/passwords/new.html.erb | |||
@@ -0,0 +1,16 @@ | |||
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" %> | ||