mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
add email 2FA
This commit is contained in:
1 parent
0e0aa0259e
commit
6e43a42274
22 files changed
+432
-57
No files matched your search
@@ -16,7 +16,9 @@ class StartFormController < ApplicationController
|
||||
COOKIES_DEFAULTS = { httponly: true, secure: Rails.env.production? }.freeze
|
||||
|
||||
def show
|
||||
raise ActionController::RoutingError, I18n.t('not_found') if @template.preferences['require_phone_2fa']
|
||||
if @template.preferences['require_phone_2fa'] || @template.preferences['require_email_2fa']
|
||||
raise ActionController::RoutingError, I18n.t('not_found')
|
||||
end
|
||||
|
||||
if @template.shared_link?
|
||||
@submitter = @template.submissions.new(account_id: @template.account_id)
|
||||
|
||||
Reference in new issue
Block a user