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 # frozen_string_literal: true
class Admin::SessionsController < ApplicationController class Admin::SessionsController < ApplicationController
include Authenticates2FAForAdminMode include AuthenticatesWithTwoFactorForAdminMode
include InternalRedirect include InternalRedirect
include RendersLdapServers include RendersLdapServers
......
# frozen_string_literal: true # frozen_string_literal: true
module Authenticates2FAForAdminMode module AuthenticatesWithTwoFactorForAdminMode
extend ActiveSupport::Concern extend ActiveSupport::Concern
included do included do
......
# frozen_string_literal: true # frozen_string_literal: true
class OmniauthCallbacksController < Devise::OmniauthCallbacksController class OmniauthCallbacksController < Devise::OmniauthCallbacksController
include AuthenticatesWithTwoFactor include AuthenticatesWithTwoFactorForAdminMode
include Authenticates2FAForAdminMode
include Devise::Controllers::Rememberable include Devise::Controllers::Rememberable
include AuthHelper include AuthHelper
include InitializesCurrentUserMode 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