require 2fa placeholder

This commit is contained in:
Pete Matsyburka committed 2025-04-08 15:24:17 +03:00
1 parent 889fcad859
commit c4505e67f0
10 files changed
+135 -26

No files matched your search

+3 -1
View File
@@ -8,7 +8,9 @@ class ApiPathConsiderJsonMiddleware
def call(env)
if env['PATH_INFO'].starts_with?('/api') &&
(!env['PATH_INFO'].ends_with?('/documents') || env['REQUEST_METHOD'] != 'POST') &&
!env['PATH_INFO'].ends_with?('/attachments')
!env['PATH_INFO'].ends_with?('/attachments') &&
!env['PATH_INFO'].ends_with?('/submitter_sms_clicks') &&
!env['PATH_INFO'].ends_with?('/submitter_email_clicks')
env['CONTENT_TYPE'] = 'application/json'
end