Skip to content

Commit

Permalink
Remove superfluous digest variable
Browse files Browse the repository at this point in the history
  • Loading branch information
allthesignals committed May 2, 2024
1 parent 971d83b commit bed0b03
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/controllers/webhooks/argyle/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ class Webhooks::Argyle::EventsController < ApplicationController
skip_before_action :verify_authenticity_token

def create
digest = OpenSSL::Digest.new('sha512')
signature = OpenSSL::HMAC.hexdigest('SHA512', ENV['ARGYLE_WEBHOOK_SECRET'], request.raw_post)

if request.headers["X-Argyle-Signature"] == signature
Expand Down

0 comments on commit bed0b03

Please sign in to comment.