Sha256: df9fbbeebdadb60a48f9f5f613d12ac22a38eabef88932b52a93f7d029f1c37c

Contents?: true

Size: 705 Bytes

Versions: 1

Compression:

Stored size: 705 Bytes

Contents

class LoginController < ApplicationController
  Mumukit::Login.configure_login_controller! self

  skip_before_action :verify_authenticity_token, if: lambda { Rails.env.development? }
  skip_before_action :validate_user_profile!,
                     :validate_accepted_role_terms!,
                     :validate_active_organization!,
                     :redirect_to_proper_context!,
                     :ensure_restore_progress!,
                     :visit_organization!

  def logout_current_user!
    flash.keep
    super
  end

  private

  def organization_name
    params[:organization] || super
  end

  def login_failure!
    redirect_to root_path, alert: request.params['message']
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 app/controllers/login_controller.rb