mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
adjsut resubmit
This commit is contained in:
1 parent
6f4527038b
commit
616f7b4fd8
3 files changed
+13
-6
No files matched your search
@@ -86,10 +86,12 @@ class StartFormResubmitController < ApplicationController
|
||||
rescue Submitters::StartForm::NotSaved
|
||||
render 'start_form/show', status: :unprocessable_content
|
||||
rescue Submitters::UnableToSendCode, Submitters::InvalidOtp => e
|
||||
redirect_to start_form_path(@template.slug, params: submitter_params.merge(email_verification: true)),
|
||||
alert: e.message
|
||||
flash.now[:alert] = e.message
|
||||
|
||||
render 'start_form/email_verification'
|
||||
rescue RateLimit::LimitApproached
|
||||
redirect_to start_form_path(@template.slug, params: submitter_params.merge(email_verification: true)),
|
||||
alert: I18n.t(:too_many_attempts)
|
||||
flash.now[:alert] = I18n.t(:too_many_attempts)
|
||||
|
||||
render 'start_form/email_verification'
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user