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