mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 07:42:32 -05:00
add signature verification
This commit is contained in:
1 parent
0ac30a5fc0
commit
c9e255f589
19 files changed
+231
-61
No files matched your search
@@ -11,6 +11,13 @@ Rails.configuration.to_prepare do
|
||||
response.set_header('Cache-Control', 'public, max-age=31536000') if action_name == 'show'
|
||||
end
|
||||
|
||||
ActiveStorage::DirectUploadsController.before_action do
|
||||
next if current_user
|
||||
next if Submitter.find_signed(cookies.signed[:submitter_sid])
|
||||
|
||||
head :forbidden
|
||||
end
|
||||
|
||||
LoadActiveStorageConfigs.call
|
||||
rescue StandardError => e
|
||||
Rails.logger.error(e)
|
||||
|
||||
Reference in new issue
Block a user