Ignore exceptions looking up a user from a session.
This commit is contained in:
parent
d45db3acc4
commit
6ba4e831a7
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue