diff options
| author | simon <simon@zagal.(none)> | 2009-02-08 23:54:29 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-15 20:22:04 +0100 |
| commit | 654f1542cafb3a8fc6bcd559952ae1a14c825fc9 (patch) | |
| tree | d4596c1a34d72495b473523774993a28128b6987 /app | |
| parent | 9f94a70c3e3d9bf766cb9663b0a904d30a190d85 (diff) | |
* regenerated the user fixtures with new site key, login tests work now
* removed some cookie related tests
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/sessions_controller.rb | 3 | ||||
| -rw-r--r-- | app/views/sessions/new.html.erb | 5 |
2 files changed, 1 insertions, 7 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 7c06ac8..65e4ac3 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb | |||
| @@ -19,8 +19,7 @@ class SessionsController < ApplicationController | |||
| 19 | flash[:notice] = "Logged in successfully" | 19 | flash[:notice] = "Logged in successfully" |
| 20 | else | 20 | else |
| 21 | note_failed_signin | 21 | note_failed_signin |
| 22 | @login = params[:login] | 22 | @login = params[:login] |
| 23 | @remember_me = params[:remember_me] | ||
| 24 | render :action => 'new' | 23 | render :action => 'new' |
| 25 | end | 24 | end |
| 26 | end | 25 | end |
diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 84f8469..3a27464 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb | |||
| @@ -7,10 +7,5 @@ | |||
| 7 | <p><%= label_tag 'password' %><br/> | 7 | <p><%= label_tag 'password' %><br/> |
| 8 | <%= password_field_tag 'password', nil %></p> | 8 | <%= password_field_tag 'password', nil %></p> |
| 9 | 9 | ||
| 10 | <!-- Uncomment this if you want this functionality | ||
| 11 | <p><%= label_tag 'remember_me', 'Remember me' %> | ||
| 12 | <%= check_box_tag 'remember_me', '1', @remember_me %></p> | ||
| 13 | --> | ||
| 14 | |||
| 15 | <p><%= submit_tag 'Log in' %></p> | 10 | <p><%= submit_tag 'Log in' %></p> |
| 16 | <% end -%> | 11 | <% end -%> |
