Chatwoot/app/controllers/devise_overrides/sessions_controller.rb

10 lines
263 B
Ruby
Raw Normal View History

2020-02-02 17:22:38 +00:00
class DeviseOverrides::SessionsController < ::DeviseTokenAuth::SessionsController
# Prevent session parameter from being passed
# Unpermitted parameter: session
wrap_parameters format: []
def render_create_success
render 'devise/auth.json'
end
end