diff options
author | George Claghorn <george@basecamp.com> | 2018-10-19 15:21:26 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-10-19 15:21:26 -0400 |
commit | fbd4219274f7c30de391ec8d7b6b6c5d76fb57c7 (patch) | |
tree | 3ce3b39139d10395b40419d65b3b2da2bfd21695 /app/controllers | |
parent | 8ff493d683d9fbdb508bd94643dbb11c54ac17b7 (diff) | |
download | rails-fbd4219274f7c30de391ec8d7b6b6c5d76fb57c7.tar.gz rails-fbd4219274f7c30de391ec8d7b6b6c5d76fb57c7.tar.bz2 rails-fbd4219274f7c30de391ec8d7b6b6c5d76fb57c7.zip |
Don't short-circuit
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/action_mailbox/base_controller.rb | 2 |
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 |