session_takeover.rb 385 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sessions::Event::SessionTakeover < Sessions::Event::Base
  3. database_connection_required
  4. def run
  5. return if !valid_session?
  6. Sessions.send_to(@session['id'], {
  7. event: 'session_takeover',
  8. data: @payload['data'],
  9. })
  10. end
  11. end