aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-10-19 15:21:26 -0400
committerGeorge Claghorn <george@basecamp.com>2018-10-19 15:21:26 -0400
commitfbd4219274f7c30de391ec8d7b6b6c5d76fb57c7 (patch)
tree3ce3b39139d10395b40419d65b3b2da2bfd21695 /app
parent8ff493d683d9fbdb508bd94643dbb11c54ac17b7 (diff)
downloadrails-fbd4219274f7c30de391ec8d7b6b6c5d76fb57c7.tar.gz
rails-fbd4219274f7c30de391ec8d7b6b6c5d76fb57c7.tar.bz2
rails-fbd4219274f7c30de391ec8d7b6b6c5d76fb57c7.zip
Don't short-circuit
Diffstat (limited to 'app')
-rw-r--r--app/controllers/action_mailbox/base_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/action_mailbox/base_controller.rb b/app/controllers/action_mailbox/base_controller.rb
index 680c6a9615..6f0e7e42d1 100644
--- a/app/controllers/action_mailbox/base_controller.rb
+++ b/app/controllers/action_mailbox/base_controller.rb
@@ -4,7 +4,7 @@ class ActionMailbox::BaseController < ActionController::Base
private
def authenticate
authenticate_or_request_with_http_basic("Action Mailbox") do |given_username, given_password|
- ActiveSupport::SecurityUtils.secure_compare(given_username, username) &&
+ ActiveSupport::SecurityUtils.secure_compare(given_username, username) &
ActiveSupport::SecurityUtils.secure_compare(given_password, password)
end
end