mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
fix email tracking params
This commit is contained in:
1 parent
14418b93b1
commit
92da790e77
2 files changed
+9
-2
No files matched your search
@@ -20,9 +20,15 @@ module SubmissionEvents
|
||||
|
||||
module_function
|
||||
|
||||
def build_tracking_param_legacy(submitter, event_type = 'click_email')
|
||||
Base64.urlsafe_encode64(
|
||||
[submitter.slug, event_type].join(':')
|
||||
).first(TRACKING_PARAM_LENGTH)
|
||||
end
|
||||
|
||||
def build_tracking_param(submitter, event_type = 'click_email')
|
||||
Base64.urlsafe_encode64(
|
||||
[submitter.slug, event_type, Rails.application.secret_key_base].join(':')
|
||||
Digest::SHA1.digest([submitter.slug, event_type, Rails.application.secret_key_base].join(':'))
|
||||
).first(TRACKING_PARAM_LENGTH)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user