Sha256: 99233ad19ee9296f2219287ce87f983617a8122b21f3fee64c8dbf6f9f1ced6b

Contents?: true

Size: 346 Bytes

Versions: 49

Compression:

Stored size: 346 Bytes

Contents

module Maestrano
  class SessionsController < ApplicationController
    # Logout
    def destroy
      session.delete(:uid)
      session.delete(:"role_#{session[:org_uid]}")
      session.delete(:org_uid)
      session.delete(:tenant)
      session.delete(:current_user_id)
      @current_user = nil

      redirect_to root_url
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
maestrano-connector-rails-1.2.1 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.2.0 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.1.2 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.1.1 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.1.0 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.0.4 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.0.3 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.0.2 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.0.1 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.0.0 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-0.4.4 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-0.4.3 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-0.4.2 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-0.4.1 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-0.4.0 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-0.3.13 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-0.3.12 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-0.3.11 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-0.3.10 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-0.3.9 app/controllers/maestrano/sessions_controller.rb