summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-04-16 02:27:18 +0000
committerGo MAEDA <maeda@farend.jp>2021-04-16 02:27:18 +0000
commitf9e937f85af2091e36f264a1d21ccc10d5cf65b5 (patch)
tree36a579eeebd771fe8f4cf9eac28cf0b02ccff6e4 /app/controllers
parente41cf61de80bb183abeae8c1674cb7d0ef9d1277 (diff)
downloadredmine-f9e937f85af2091e36f264a1d21ccc10d5cf65b5.tar.gz
redmine-f9e937f85af2091e36f264a1d21ccc10d5cf65b5.zip
Users without two-factor authentication enabled cannot sign out when two-factor authentication is required (#35087).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@20949 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/account_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb
index ad5832dad..c6d13d417 100644
--- a/app/controllers/account_controller.rb
+++ b/app/controllers/account_controller.rb
@@ -25,6 +25,7 @@ class AccountController < ApplicationController
# prevents login action to be filtered by check_if_login_required application scope filter
skip_before_action :check_if_login_required, :check_password_change
+ skip_before_action :check_twofa_activation, :only => :logout
# Overrides ApplicationController#verify_authenticity_token to disable
# token verification on openid callbacks