From 79087f4e6fb9674d98e4e50d4fd8df870e73acf6 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 28 Nov 2013 12:39:59 +1100 Subject: [PATCH] fix exception in logs --- app/controllers/session_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/session_controller.rb b/app/controllers/session_controller.rb index afd4c901cf4..1ec32942527 100644 --- a/app/controllers/session_controller.rb +++ b/app/controllers/session_controller.rb @@ -26,6 +26,10 @@ class SessionController < ApplicationController login_not_approved return end + + else + invalid_credentials + return end if user.suspended?