diff options
author | Go MAEDA <maeda@farend.jp> | 2020-08-31 08:29:44 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-08-31 08:29:44 +0000 |
commit | ddce44f490a41b909dbc2ab7e9c7d0a925aaa5b7 (patch) | |
tree | a01468241dddaabe50c4824ea43e987a34d14ab2 /lib/redmine/twofa | |
parent | 03aebc3d3ee669c81b496b73eba4d612c43c644f (diff) | |
download | redmine-ddce44f490a41b909dbc2ab7e9c7d0a925aaa5b7.tar.gz redmine-ddce44f490a41b909dbc2ab7e9c7d0a925aaa5b7.zip |
Fix that Redmine::Twofa::Base raises ArgumentError in development mode (#1237, #33925).
git-svn-id: http://svn.redmine.org/redmine/trunk@19995 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/twofa')
-rw-r--r-- | lib/redmine/twofa/base.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/redmine/twofa/base.rb b/lib/redmine/twofa/base.rb index e959aa930..4c9c140f9 100644 --- a/lib/redmine/twofa/base.rb +++ b/lib/redmine/twofa/base.rb @@ -53,7 +53,7 @@ module Redmine end def deliver_twofa_paired - Mailer.security_notification( + ::Mailer.security_notification( @user, User.current, { @@ -82,7 +82,7 @@ module Redmine end def deliver_twofa_unpaired - Mailer.security_notification( + ::Mailer.security_notification( @user, User.current, { @@ -114,7 +114,7 @@ module Redmine Token.where(user_id: @user.id).find_token('twofa_backup_code', code).try(:delete) # make sure the user using the backup code is the same it's been issued to return false unless @user.present? && @user == user_from_code - Mailer.security_notification( + ::Mailer.security_notification( @user, User.current, { @@ -135,7 +135,7 @@ module Redmine token.update_columns value: Redmine::Utils.random_hex(6) tokens << token end - Mailer.security_notification( + ::Mailer.security_notification( @user, User.current, { |