X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0a8c26e596b40da6d428a5c91db0d815d13c89e4..6d07f5661a4530b334ab752044536e8bdb201b02:/app/controllers/application.rb?ds=inline 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