mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 07:21:41 +00:00
fix: typo
This commit is contained in:
parent
a99e03ce15
commit
42e6a0b6eb
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ module Api
|
||||||
# valida token a partir de firma de webhook
|
# valida token a partir de firma de webhook
|
||||||
#
|
#
|
||||||
# @return [String, Boolean]
|
# @return [String, Boolean]
|
||||||
def token_from_signature(signature. prepend = '')
|
def token_from_signature(signature, prepend = '')
|
||||||
payload = request.body.read
|
payload = request.body.read
|
||||||
site.roles.where(temporal: false, rol: 'usuarie').pluck(:token).find do |token|
|
site.roles.where(temporal: false, rol: 'usuarie').pluck(:token).find do |token|
|
||||||
new_signature = prepend + OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'), token, payload)
|
new_signature = prepend + OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'), token, payload)
|
||||||
|
|
Loading…
Reference in a new issue