diff options
| author | hukl <hukl@eight.local> | 2009-02-15 20:58:55 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-15 20:58:55 +0100 |
| commit | c9d0f429b4ae6f82172b94282ff39734e1df8964 (patch) | |
| tree | 12ec7ba7720a3d1de3cdafc6044e73438ca2de83 /app/controllers/sessions_controller.rb | |
| parent | cbdb0d11742581407108d2300c5caf61787c6fe8 (diff) | |
changed layout
Diffstat (limited to 'app/controllers/sessions_controller.rb')
| -rw-r--r-- | app/controllers/sessions_controller.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 65e4ac3..dd86ea9 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | # This controller handles the login/logout function of the site. | 1 | # This controller handles the login/logout function of the site. |
| 2 | class SessionsController < ApplicationController | 2 | class SessionsController < ApplicationController |
| 3 | 3 | ||
| 4 | layout 'admin' | ||
| 5 | |||
| 4 | # render new.rhtml | 6 | # render new.rhtml |
| 5 | def new | 7 | def new |
| 6 | end | 8 | end |
| @@ -34,6 +36,7 @@ protected | |||
| 34 | # Track failed login attempts | 36 | # Track failed login attempts |
| 35 | def note_failed_signin | 37 | def note_failed_signin |
| 36 | flash[:error] = "Couldn't log you in as '#{params[:login]}'" | 38 | flash[:error] = "Couldn't log you in as '#{params[:login]}'" |
| 37 | logger.warn "Failed login for '#{params[:login]}' from #{request.remote_ip} at #{Time.now.utc}" | 39 | logger.warn "Failed login for '#{params[:login]}'" \ |
| 40 | "from #{request.remote_ip} at #{Time.now.utc}" | ||
| 38 | end | 41 | end |
| 39 | end | 42 | end |
