Sha256: b799855021fd06a6025145be05f45c8391bbc4f00550b41afdf0f6851daa2430

Contents?: true

Size: 548 Bytes

Versions: 6

Compression:

Stored size: 548 Bytes

Contents

module Kaui
  # Subclassed to specify the correct layout
  class SessionsController < Devise::SessionsController
    layout Kaui.config[:layout]

    skip_before_filter :check_for_redirect_to_tenant_screen

    protected

    # Override after_sign_in_path_for to not have to rely on the default 'root' config which we want to keep on home#index
    def after_sign_in_path_for(resource)
      # Clear the tenant_id from the cookie to not rely on old cookie data
      session[:kb_tenant_id] = nil
      Kaui.tenant_home_path.call
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kaui-0.9.0 app/controllers/kaui/sessions_controller.rb
kaui-0.8.4 app/controllers/kaui/sessions_controller.rb
kaui-0.8.3 app/controllers/kaui/sessions_controller.rb
kaui-0.8.2 app/controllers/kaui/sessions_controller.rb
kaui-0.8.1 app/controllers/kaui/sessions_controller.rb
kaui-0.8.0 app/controllers/kaui/sessions_controller.rb