5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 05:31:42 +00:00

fix: typo

This commit is contained in:
f 2023-08-16 16:24:33 -03:00
parent a99e03ce15
commit 42e6a0b6eb

View file

@ -51,7 +51,7 @@ module Api
# valida token a partir de firma de webhook
#
# @return [String, Boolean]
def token_from_signature(signature. prepend = '')
def token_from_signature(signature, prepend = '')
payload = request.body.read
site.roles.where(temporal: false, rol: 'usuarie').pluck(:token).find do |token|
new_signature = prepend + OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'), token, payload)