lib/hippo/api/cable.rb in hippo-fw-0.9.6 vs lib/hippo/api/cable.rb in hippo-fw-0.9.7
- old
+ new
@@ -13,11 +13,9 @@
class Connection < ActionCable::Connection::Base
identified_by :current_user
def connect
token = request.params['token']
- Hippo.logger_debug("NEW WS CONN: #{token}")
-
begin
self.current_user = User.for_jwt_token(token) if token
rescue JWT::DecodeError
end
unless self.current_user