diff options
author | David Yip <yipdw@member.fsf.org> | 2018-02-10 22:08:45 -0600 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2018-02-10 22:08:45 -0600 |
commit | b6159bcb0a20f3aabfb4d17ad60842b7aa81925c (patch) | |
tree | 5fbc5ebb3890ddbf0399bc1fd448f109561b2771 /app/controllers/api | |
parent | 136458eaf4f73abc5bcb5d0b0978aff892e92f27 (diff) | |
parent | b8efc3fc0b961d356472cf2e56fde69a6589ffaa (diff) |
Merge remote-tracking branch 'origin/merge-upstream'
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/salmon_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/api/salmon_controller.rb b/app/controllers/api/salmon_controller.rb index 143e9d3cd..ac5f3268d 100644 --- a/app/controllers/api/salmon_controller.rb +++ b/app/controllers/api/salmon_controller.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true class Api::SalmonController < Api::BaseController + include SignatureVerification + before_action :set_account respond_to :txt @@ -9,7 +11,7 @@ class Api::SalmonController < Api::BaseController process_salmon head 202 elsif payload.present? - [signature_verification_failure_reason, 401] + render plain: signature_verification_failure_reason, status: 401 else head 400 end |