aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-11-05 09:11:01 -0500
committerGeorge Claghorn <george@basecamp.com>2018-11-05 09:11:01 -0500
commit7755f9b381c007ce98e0858473a9f29f1cd25311 (patch)
tree9130fccc00bf2602cdcf92eda572deec911f6302 /app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb
parentcb041ddc7e94da15e2db72188545f78da6cadb53 (diff)
downloadrails-7755f9b381c007ce98e0858473a9f29f1cd25311.tar.gz
rails-7755f9b381c007ce98e0858473a9f29f1cd25311.tar.bz2
rails-7755f9b381c007ce98e0858473a9f29f1cd25311.zip
Read ingress passwords/API keys from encrypted credentials
Fall back to ENV for people who prefer that approach.
Diffstat (limited to 'app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb')
-rw-r--r--app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb b/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb
index f31845d8cd..b856eb5b94 100644
--- a/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb
+++ b/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb
@@ -1,8 +1,5 @@
class ActionMailbox::Ingresses::Sendgrid::InboundEmailsController < ActionMailbox::BaseController
- cattr_accessor :username, default: "actionmailbox"
- cattr_accessor :password
-
- before_action :authenticate
+ before_action :authenticate_by_password
def create
ActionMailbox::InboundEmail.create_and_extract_message_id! params.require(:email)