diff options
author | George Claghorn <george@basecamp.com> | 2018-10-19 17:34:06 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-10-19 17:34:08 -0400 |
commit | ce93bbae01dc7089cbdca510574e0009b7f669ed (patch) | |
tree | 05591bec93a97fcefd0f9f27e50adecba7f681d2 /app/controllers/action_mailbox/ingresses/mailgun | |
parent | ebe3d0aaab633de77db494e50f720a8723acbd41 (diff) | |
download | rails-ce93bbae01dc7089cbdca510574e0009b7f669ed.tar.gz rails-ce93bbae01dc7089cbdca510574e0009b7f669ed.tar.bz2 rails-ce93bbae01dc7089cbdca510574e0009b7f669ed.zip |
Tighten up the acceptable drift
Diffstat (limited to 'app/controllers/action_mailbox/ingresses/mailgun')
-rw-r--r-- | app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb b/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb index 2ca970fa8e..11c47a5ea9 100644 --- a/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb +++ b/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb @@ -38,9 +38,9 @@ class ActionMailbox::Ingresses::Mailgun::InboundEmailsController < ActionMailbox ActiveSupport::SecurityUtils.secure_compare signature, expected_signature end - # Allow for 10 minutes of drift between Mailgun time and local server time. + # Allow for 2 minutes of drift between Mailgun time and local server time. def recent? - time >= 10.minutes.ago + time >= 2.minutes.ago end def expected_signature |