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/users | |
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/users')
-rw-r--r-- | app/views/users/sessions/.new.html.haml.swo | bin | 0 -> 12288 bytes | |||
-rw-r--r-- | app/views/users/sessions/new.html.haml | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/app/views/users/sessions/.new.html.haml.swo b/app/views/users/sessions/.new.html.haml.swo new file mode 100644 index 0000000..85950d9 --- /dev/null +++ b/app/views/users/sessions/.new.html.haml.swo | |||
Binary files differ | |||
diff --git a/app/views/users/sessions/new.html.haml b/app/views/users/sessions/new.html.haml new file mode 100644 index 0000000..fbdf8be --- /dev/null +++ b/app/views/users/sessions/new.html.haml | |||
@@ -0,0 +1,15 @@ | |||
1 | #userdata-form | ||
2 | = form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| | ||
3 | .field | ||
4 | = f.label :login | ||
5 | = f.text_field :login, autofocus: true | ||
6 | .field | ||
7 | = f.label :password | ||
8 | = f.password_field :password, autocomplete: "off" | ||
9 | .remember-me-field | ||
10 | = f.check_box :remember_me | ||
11 | = f.label :remember_me | ||
12 | .submit-field | ||
13 | = f.submit "Log in" | ||
14 | .userdata-link= link_to "Forgot your password?", new_password_path(resource_name) | ||
15 | .userdata-link= link_to "← Back to thoughts", root_url | ||