From 6ba4e831a78ac9d753a775f437f8fa0b1f03951f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 16 Aug 2007 13:07:24 +0000 Subject: [PATCH] Ignore exceptions looking up a user from a session. --- app/controllers/application.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/application.rb b/app/controllers/application.rb index bc61db5f9..d22ed5c9f 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -9,6 +9,9 @@ class ApplicationController < ActionController::Base @user = User.authenticate(:token => session[:token]) session[:user] = @user.id end + rescue Exception => ex + logger.info("Exception authorizing user: #{ex.to_s}") + @user = nil end def require_user -- 2.43.2