summaryrefslogtreecommitdiff
path: root/app/controllers/concerns
diff options
context:
space:
mode:
authorIllya Klymov <xanf@xanf.me>2019-04-24 13:23:07 +0000
committerNick Thomas <nick@gitlab.com>2019-04-24 13:23:07 +0000
commit3eff85a97cee2a4143b80f97f750e02526aee1ab (patch)
treed51b069585762df9d497b10d078612828f6e6283 /app/controllers/concerns
parenta89e8149b686c37962612779b0d245e7a90e59a8 (diff)
downloadgitlab-ce-3eff85a97cee2a4143b80f97f750e02526aee1ab.tar.gz
Remove "You are already signed in" banner
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r--app/controllers/concerns/authenticates_with_two_factor.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/controllers/concerns/authenticates_with_two_factor.rb b/app/controllers/concerns/authenticates_with_two_factor.rb
index d5c4712bd78..4926062f9ca 100644
--- a/app/controllers/concerns/authenticates_with_two_factor.rb
+++ b/app/controllers/concerns/authenticates_with_two_factor.rb
@@ -8,13 +8,6 @@
module AuthenticatesWithTwoFactor
extend ActiveSupport::Concern
- included do
- # This action comes from DeviseController, but because we call `sign_in`
- # manually, not skipping this action would cause a "You are already signed
- # in." error message to be shown upon successful login.
- skip_before_action :require_no_authentication, only: [:create], raise: false
- end
-
# Store the user's ID in the session for later retrieval and render the
# two factor code prompt
#