|
|
|
@ -11,6 +11,8 @@ class StartFormController < ApplicationController
|
|
|
|
before_action :load_template
|
|
|
|
before_action :load_template
|
|
|
|
|
|
|
|
|
|
|
|
def show
|
|
|
|
def show
|
|
|
|
|
|
|
|
raise ActionController::RoutingError, I18n.t('not_found') if @template.preferences['require_phone_2fa'] == true
|
|
|
|
|
|
|
|
|
|
|
|
@submitter = @template.submissions.new(account_id: @template.account_id)
|
|
|
|
@submitter = @template.submissions.new(account_id: @template.account_id)
|
|
|
|
.submitters.new(uuid: (filter_undefined_submitters(@template).first ||
|
|
|
|
.submitters.new(uuid: (filter_undefined_submitters(@template).first ||
|
|
|
|
@template.submitters.first)['uuid'])
|
|
|
|
@template.submitters.first)['uuid'])
|
|
|
|
|