Sha256: 461bf7f7c9bc77359e870744e6bb5fed9be1c1ffe425f253bd2001614f543bbf

Contents?: true

Size: 430 Bytes

Versions: 17

Compression:

Stored size: 430 Bytes

Contents

class Admin::UserSessionsController < Admin::ApplicationController

  skip_before_action :require_admin_user
  layout 'admin/login'

  def new
    if current_user
      redirect_to admin_root_path
    elsif SpudUser.all.count.zero?
      logger.debug 'NO USERS!'
      redirect_to admin_setup_path and return
    end
    @user_session = SpudUserSession.new
  end

  def legacy_redirect
    redirect_to admin_login_path
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
tb_core-1.5.4 app/controllers/admin/user_sessions_controller.rb
tb_core-1.5.3 app/controllers/admin/user_sessions_controller.rb
tb_core-1.5.2 app/controllers/admin/user_sessions_controller.rb
tb_core-1.5.1 app/controllers/admin/user_sessions_controller.rb
tb_core-1.4.3.1 app/controllers/admin/user_sessions_controller.rb
tb_core-1.5.0 app/controllers/admin/user_sessions_controller.rb
tb_core-1.4.8 app/controllers/admin/user_sessions_controller.rb
tb_core-1.4.7 app/controllers/admin/user_sessions_controller.rb
tb_core-1.4.6 app/controllers/admin/user_sessions_controller.rb
tb_core-1.4.5 app/controllers/admin/user_sessions_controller.rb
tb_core-1.4.4 app/controllers/admin/user_sessions_controller.rb
tb_core-1.4.3 app/controllers/admin/user_sessions_controller.rb
tb_core-1.4.2 app/controllers/admin/user_sessions_controller.rb
tb_core-1.4.1 app/controllers/admin/user_sessions_controller.rb
tb_core-1.4.0.1 app/controllers/admin/user_sessions_controller.rb
tb_core-1.4.beta2 app/controllers/admin/user_sessions_controller.rb
tb_core-1.4.beta1 app/controllers/admin/user_sessions_controller.rb