Commit 1b8718e2 authored by Imre Farkas's avatar Imre Farkas

Merge branch 're-organise-admin-two-factor-concerns' into 'master'

Make two factor concern module more auto-load friendly

See merge request gitlab-org/gitlab!43077
parents fd3864e0 1b822029
# frozen_string_literal: true
class Admin::SessionsController < ApplicationController
include Authenticates2FAForAdminMode
include AuthenticatesWithTwoFactorForAdminMode
include InternalRedirect
include RendersLdapServers
......
# frozen_string_literal: true
module Authenticates2FAForAdminMode
module AuthenticatesWithTwoFactorForAdminMode
extend ActiveSupport::Concern
included do
......
# frozen_string_literal: true
class OmniauthCallbacksController < Devise::OmniauthCallbacksController
include AuthenticatesWithTwoFactor
include Authenticates2FAForAdminMode
include AuthenticatesWithTwoFactorForAdminMode
include Devise::Controllers::Rememberable
include AuthHelper
include InitializesCurrentUserMode
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment