Fix object_id warning
This commit is contained in:
parent
2f77efe7e6
commit
c485ae3249
1 changed files with 3 additions and 2 deletions
|
@ -35,8 +35,9 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
end
|
||||
elsif session[:token]
|
||||
@user = User.authenticate(:token => session[:token])
|
||||
session[:user] = @user.id
|
||||
if @user = User.authenticate(:token => session[:token])
|
||||
session[:user] = @user.id
|
||||
end
|
||||
end
|
||||
rescue Exception => ex
|
||||
logger.info("Exception authorizing user: #{ex.to_s}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue