From f9e937f85af2091e36f264a1d21ccc10d5cf65b5 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 16 Apr 2021 02:27:18 +0000 Subject: 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 --- app/controllers/account_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/controllers') 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 -- cgit v1.2.3