summaryrefslogtreecommitdiff
path: root/app/controllers/sessions_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/sessions_controller.rb')
-rw-r--r--app/controllers/sessions_controller.rb7
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.
2class SessionsController < ApplicationController 2class 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
39end 42end