Sha256: 088166a41427d9c8880f1b37beb5b155480c2db481a0a481c57f325aba648fd9

Contents?: true

Size: 392 Bytes

Versions: 55

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

module Motor
  class SessionsController < ApiBaseController
    include ActionController::Cookies

    skip_authorization_check

    def show
      render json: {
        current_user_email: current_user&.email,
        current_user_id: current_user&.id
      }
    end

    def destroy
      session.clear
      cookies.clear

      head :ok
    end
  end
end

Version data entries

55 entries across 55 versions & 6 rubygems

Version Path
motor-admin-0.4.34 app/controllers/motor/sessions_controller.rb
motor-admin-0.4.33 app/controllers/motor/sessions_controller.rb
motor-admin-0.4.32 app/controllers/motor/sessions_controller.rb
motor-admin-0.4.31 app/controllers/motor/sessions_controller.rb
motor-admin-0.4.30 app/controllers/motor/sessions_controller.rb
motor-admin-0.4.29 app/controllers/motor/sessions_controller.rb
motor-admin-0.4.28 app/controllers/motor/sessions_controller.rb
motor-admin-cstham8-0.4.35 app/controllers/motor/sessions_controller.rb
motor-admin-cstham8-0.4.34 app/controllers/motor/sessions_controller.rb
motor-admin-cstham8-0.4.33 app/controllers/motor/sessions_controller.rb
motor-admin-cstham8-0.4.32 app/controllers/motor/sessions_controller.rb
motor-admin-cstham8-0.4.31 app/controllers/motor/sessions_controller.rb
motor-admin-cstham8-0.4.30 app/controllers/motor/sessions_controller.rb
motor-admin-cstham8-0.4.29 app/controllers/motor/sessions_controller.rb
motor-admin-cstham8-0.4.28 app/controllers/motor/sessions_controller.rb
motor-admin-cstham8-0.4.27 app/controllers/motor/sessions_controller.rb
motor-admin-0.4.27 app/controllers/motor/sessions_controller.rb
motor-admin-unosquare-0.4.28 app/controllers/motor/sessions_controller.rb
motor-admin-unosquare-0.4.27 app/controllers/motor/sessions_controller.rb
motor-admin-pz-0.4.26 app/controllers/motor/sessions_controller.rb